mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-07 16:01:55 +01:00
Send light packet before chunk
This commit is contained in:
parent
9a83226df5
commit
720c0fb6df
@ -512,20 +512,16 @@ public abstract class Chunk implements Viewable, DataContainer {
|
||||
return;
|
||||
|
||||
final PlayerConnection playerConnection = player.getPlayerConnection();
|
||||
|
||||
// Retrieve & send the buffer to the connection
|
||||
playerConnection.sendPacket(getFreshFullDataPacket());
|
||||
|
||||
playerConnection.sendPacket(getLightPacket());
|
||||
playerConnection.sendPacket(getFreshFullDataPacket());
|
||||
}
|
||||
|
||||
public synchronized void sendChunk() {
|
||||
if (!isLoaded()) {
|
||||
return;
|
||||
}
|
||||
|
||||
sendPacketToViewers(getFreshFullDataPacket());
|
||||
sendPacketToViewers(getLightPacket());
|
||||
sendPacketToViewers(getFreshFullDataPacket());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user