I am trying to force load a chunk, but it isn't working correctly. Code:java Chunk c = Game.getInstance().getWorld().getChunkAt(startX, startZ); do { c.load(); //load chunk if it isn't loaded }while(!c.isLoaded());
We need more information to help you. If you just say that it's not working correctly, we can't know what's wrong and thus can't help you.
Assist well there are no errors and when i teleport the player to the location the chunk still has to load.
RawCode Why do all your posts seem angry :c cfil360 I'm not sure if this is causing any issues but i think the while loop could be doing something dodgy. Have you tried just running the chunk.load method and then having an ChunkLoadEvent to detect and TP? I've never played with Chunks so i'm not very useful tbh
cfil360 I still do not understand what you want. There is completely no reason to preload anything, bukkit handle teleportations properly by itself.
RawCode like i teleport the players after i load the chunks, however the chunks still have to load even after canceling them with the chunk unload event.
cfil360 I will enable libastral now... You want your players to see area instantly, right? This wont happen.