diff --git a/fml/src/main/java/cpw/mods/fml/common/network/FMLNetworkHandler.java b/fml/src/main/java/cpw/mods/fml/common/network/FMLNetworkHandler.java index 52ea2aed1..61db77b91 100644 --- a/fml/src/main/java/cpw/mods/fml/common/network/FMLNetworkHandler.java +++ b/fml/src/main/java/cpw/mods/fml/common/network/FMLNetworkHandler.java @@ -49,6 +49,7 @@ import cpw.mods.fml.common.network.FMLPacket.Type; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.EntityRegistry.EntityRegistration; +import cpw.mods.fml.relauncher.Side; public class FMLNetworkHandler { @@ -351,10 +352,14 @@ public class FMLNetworkHandler { NetworkRegistry.instance().openRemoteGui(mc, (EntityPlayerMP) player, modGuiId, world, x, y, z); } - else + else if (FMLCommonHandler.instance().getSide().equals(Side.CLIENT)) { NetworkRegistry.instance().openLocalGui(mc, player, modGuiId, world, x, y, z); } + else + { + FMLLog.fine("Invalid attempt to open a local GUI on a dedicated server. This is likely a bug. GUIID: %s,%d", mc.getModId(), modGuiId); + } } public static Packet getEntitySpawningPacket(Entity entity)