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,10 +92,13 @@ public class NetworkModHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
tryCreatingPacketHandler(container, mod.packetHandler(), mod.channels(), null);
|
tryCreatingPacketHandler(container, mod.packetHandler(), mod.channels(), null);
|
||||||
|
if (FMLCommonHandler.instance().getSide().isClient())
|
||||||
|
{
|
||||||
if (mod.clientPacketHandlerSpec() != getClientHandlerSpecDefaultValue())
|
if (mod.clientPacketHandlerSpec() != getClientHandlerSpecDefaultValue())
|
||||||
{
|
{
|
||||||
tryCreatingPacketHandler(container, mod.clientPacketHandlerSpec().packetHandler(), mod.clientPacketHandlerSpec().channels(), Side.CLIENT);
|
tryCreatingPacketHandler(container, mod.clientPacketHandlerSpec().packetHandler(), mod.clientPacketHandlerSpec().channels(), Side.CLIENT);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (mod.serverPacketHandlerSpec() != getServerHandlerSpecDefaultValue())
|
if (mod.serverPacketHandlerSpec() != getServerHandlerSpecDefaultValue())
|
||||||
{
|
{
|
||||||
tryCreatingPacketHandler(container, mod.serverPacketHandlerSpec().packetHandler(), mod.serverPacketHandlerSpec().channels(), Side.SERVER);
|
tryCreatingPacketHandler(container, mod.serverPacketHandlerSpec().packetHandler(), mod.serverPacketHandlerSpec().channels(), Side.SERVER);
|
||||||
|
|
Loading…
Reference in a new issue