mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Fix chunk border freeze by not sending UnloadChunkPacket
This commit is contained in:
parent
b155fb6720
commit
5d8c9cbd23
@ -1482,11 +1482,12 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
final UnloadChunkPacket unloadChunkPacket = new UnloadChunkPacket();
|
||||
unloadChunkPacket.chunkX = chunkX;
|
||||
unloadChunkPacket.chunkZ = chunkZ;
|
||||
playerConnection.sendPacket(unloadChunkPacket);
|
||||
//playerConnection.sendPacket(unloadChunkPacket);
|
||||
|
||||
final Chunk chunk = instance.getChunk(chunkX, chunkZ);
|
||||
if (chunk != null)
|
||||
if (chunk != null) {
|
||||
chunk.removeViewer(this);
|
||||
}
|
||||
}
|
||||
|
||||
// Load new chunks
|
||||
|
Loading…
Reference in New Issue
Block a user