Fix trying to load the client side packet handler, when on the server, hopefully?
This commit is contained in:
parent
5a6275f0e1
commit
870214000f
1 changed files with 5 additions and 2 deletions
|
@ -92,9 +92,12 @@ public class NetworkModHandler
|
|||
}
|
||||
|
||||
tryCreatingPacketHandler(container, mod.packetHandler(), mod.channels(), null);
|
||||
if (mod.clientPacketHandlerSpec() != getClientHandlerSpecDefaultValue())
|
||||
if (FMLCommonHandler.instance().getSide().isClient())
|
||||
{
|
||||
tryCreatingPacketHandler(container, mod.clientPacketHandlerSpec().packetHandler(), mod.clientPacketHandlerSpec().channels(), Side.CLIENT);
|
||||
if (mod.clientPacketHandlerSpec() != getClientHandlerSpecDefaultValue())
|
||||
{
|
||||
tryCreatingPacketHandler(container, mod.clientPacketHandlerSpec().packetHandler(), mod.clientPacketHandlerSpec().channels(), Side.CLIENT);
|
||||
}
|
||||
}
|
||||
if (mod.serverPacketHandlerSpec() != getServerHandlerSpecDefaultValue())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue