mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Guard against null chunk in packethandler
This commit is contained in:
1 file changed
+3
@@ -28,6 +28,9 @@ public final class PacketHandler {
|
||||
WorldServer ws = ((WorldServer) world);
|
||||
PlayerManager.PlayerInstance chunk = ws.getPlayerChunkMap().getEntry(pos.getX() >> 4, pos.getZ() >> 4);
|
||||
|
||||
if(chunk == null)
|
||||
return;
|
||||
|
||||
for (EntityPlayer player : ws.playerEntities) {
|
||||
EntityPlayerMP playerMP = ((EntityPlayerMP) player);
|
||||
|
||||
|
||||
Reference in new issue
Block a user