mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 01:17:47 +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();
|
final UnloadChunkPacket unloadChunkPacket = new UnloadChunkPacket();
|
||||||
unloadChunkPacket.chunkX = chunkX;
|
unloadChunkPacket.chunkX = chunkX;
|
||||||
unloadChunkPacket.chunkZ = chunkZ;
|
unloadChunkPacket.chunkZ = chunkZ;
|
||||||
playerConnection.sendPacket(unloadChunkPacket);
|
//playerConnection.sendPacket(unloadChunkPacket);
|
||||||
|
|
||||||
final Chunk chunk = instance.getChunk(chunkX, chunkZ);
|
final Chunk chunk = instance.getChunk(chunkX, chunkZ);
|
||||||
if (chunk != null)
|
if (chunk != null) {
|
||||||
chunk.removeViewer(this);
|
chunk.removeViewer(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load new chunks
|
// Load new chunks
|
||||||
|
Loading…
Reference in New Issue
Block a user