mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-20 12:09:45 +00:00
Fix a server crash relating to a client-side only class initialization (credit to @kosakriszi). Closes #1442.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user