Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some kind of issue with chunk loading #56

Open
tadhunt opened this issue Nov 2, 2022 · 1 comment
Open

Some kind of issue with chunk loading #56

tadhunt opened this issue Nov 2, 2022 · 1 comment

Comments

@tadhunt
Copy link
Contributor

tadhunt commented Nov 2, 2022

I have a .schem file with width 127 and length 113 (according to nbt.getShort("Width") and nbt.getShort("Length") in Schematic.toWorld() ).

With the default spawn point set in server.properties (world-spawn=world;20.5;17;22.5;-90;0), some parts of the map are never sent to the client, which means that they fall out of my map in those areas.

When I make no other changes except set the spawn point in server.properties to world-spawn=world;62.5;21;36.5;-45;0, then the whole map appears to be correctly transmitted to the client. (I have barrier blocks around the outer edge of my map, and have verified that everything I can get to seems to be correctly loaded as they're all showing up.).

As near as I can tell, it's some sort of chunk loading issue, but I haven't been able to figure out exactly what's wrong. I instrumented PlayerInteractManager.update() and don't see the missing chunks get loaded when the player moves, so I suspect there is an issue there somewhere, but I haven't been able to identify the root cause yet.

I'm testing with the latest master commit (e88656b) at the time of writing.

default world spawn (world-spawn=world;20.5;17;22.5;-90;0)

Screen Shot 2022-11-02 at 5 16 23 PM

custom world spawn (world-spawn=world;62.5;21;36.5;-45;0)

Note that this is exactly the same place the previous screen shot was taken from. The only change is the world-spawn coordinates in server.properties.

Screen Shot 2022-11-02 at 5 13 54 PM

@LOOHP
Copy link
Owner

LOOHP commented Nov 11, 2022

I believe if a chunk is right next to the edge of the world (chunks outside of the schem) they don't render properly. You can try to see if this is the case by adding an extra empty chunk on each side of your schem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants