Packet crash fixes, fixed Seismic Reader crash, fixed Portable Teleporter interface crash, fixed teleport crash

This commit is contained in:
aidancbrady committed 2016-06-17 16:45:53 -04:00
1 parent e4aed3f7c1
commit 06e011e244
29 files changed
+82 -67

No files matched your search

@@ -645,11 +645,11 @@ public class CommonProxy implements IGuiProvider
return context.getServerHandler().playerEntity;
}
public void handlePacket(Runnable runnable, World world)
public void handlePacket(Runnable runnable, EntityPlayer player)
{
if(world instanceof WorldServer)
if(player instanceof EntityPlayerMP)
{
((WorldServer)world).addScheduledTask(runnable);
((WorldServer)player.worldObj).addScheduledTask(runnable);
}
}