diff --git a/fml/common/cpw/mods/fml/common/network/FMLNetworkHandler.java b/fml/common/cpw/mods/fml/common/network/FMLNetworkHandler.java index 52ea2aed1..4a2cfdacc 100644 --- a/fml/common/cpw/mods/fml/common/network/FMLNetworkHandler.java +++ b/fml/common/cpw/mods/fml/common/network/FMLNetworkHandler.java @@ -351,10 +351,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)