Chunk#addViewer should always send the chunk & light packets

This commit is contained in:
themode 2020-12-20 09:50:47 +01:00
parent 3a7afa63d5
commit 2a78851ab4

View File

@ -454,10 +454,10 @@ public abstract class Chunk implements Viewable, DataContainer {
// Add to the viewable chunks set
player.getViewableChunks().add(this);
if (result) {
// Send the chunk data & light packets to the player
sendChunk(player);
// Send the chunk data & light packets to the player
sendChunk(player);
if (result) {
PlayerChunkLoadEvent playerChunkLoadEvent = new PlayerChunkLoadEvent(player, chunkX, chunkZ);
player.callEvent(PlayerChunkLoadEvent.class, playerChunkLoadEvent);
}