PacketDataRequest.onMessage is being called on the client side in SSP. Stop that from crashing the client, but is it a problem that it's being called at all?
This commit is contained in:
parent
9383ea24b6
commit
55f8dbfbad
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,10 @@ public class PacketDataRequest implements IMessageHandler<DataRequestMessage, IM
|
|||
}
|
||||
}
|
||||
|
||||
Mekanism.packetHandler.sendTo(new TileEntityMessage(Coord4D.get(tileEntity), ((ITileNetwork)tileEntity).getNetworkedData(new ArrayList())), (EntityPlayerMP)player);
|
||||
if(player instanceof EntityPlayerMP)
|
||||
{
|
||||
Mekanism.packetHandler.sendTo(new TileEntityMessage(Coord4D.get(tileEntity), ((ITileNetwork)tileEntity).getNetworkedData(new ArrayList())), (EntityPlayerMP)player);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue