Fix a server crash relating to a client-side only class initialization (credit to @kosakriszi). Closes #1442.

This commit is contained in:
Ben Spiers committed 2014-06-27 03:25:47 +01:00
1 parent ff1b3b792e
commit 4d0f276e55
3 files changed
+15 -7

No files matched your search

@@ -189,13 +189,7 @@ public class PacketHandler
public static EntityPlayer getPlayer(MessageContext context)
{
if(context.side.isClient())
{
return Minecraft.getMinecraft().thePlayer;
}
else {
return context.getServerHandler().playerEntity;
}
return Mekanism.proxy.getPlayer(context);
}
/**