mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-14 01:04:24 +00:00
Don't try and open GUIs on the server.
This commit is contained in:
1 parent
95a8b419ef
commit
c060a44371
1 file changed
+5
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user