mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-29 23:17:59 +02:00
Chunk#addViewer should always send the chunk & light packets
This commit is contained in:
parent
3a7afa63d5
commit
2a78851ab4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user