Send light packet before chunk

This commit is contained in:
themode 2021-03-29 14:36:17 +02:00
parent 9a83226df5
commit 720c0fb6df

View File

@ -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());
}
/**