mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix derp where client sided packet handler would be created on a dedi server env
This commit is contained in:
1 parent
ad4cffb0c6
commit
924a6f9254
1 file changed
+5
-1
@@ -6,6 +6,7 @@ import java.util.logging.Level;
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.FMLLog;
|
||||
import cpw.mods.fml.common.ModContainer;
|
||||
import cpw.mods.fml.common.Side;
|
||||
@@ -121,7 +122,10 @@ public class NetworkModHandler
|
||||
*/
|
||||
private void tryCreatingPacketHandler(ModContainer container, Class<? extends IPacketHandler> clazz, String[] channels, Side side)
|
||||
{
|
||||
|
||||
if (side!=null && side.isClient() && ! FMLCommonHandler.instance().getSide().isClient())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (clazz!=getPacketHandlerDefaultValue())
|
||||
{
|
||||
if (channels.length==0)
|
||||
|
||||
Reference in new issue
Block a user