mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-19 03:39:14 +00:00
Fix Client/Server issues.
This commit is contained in:
1 parent
83ff761ec4
commit
4e32a77ac8
2 files changed
+9
-5
No files matched your search
@@ -560,6 +560,13 @@ public class ClientProxy extends CommonProxy
|
||||
@Override
|
||||
public EntityPlayer getPlayer(MessageContext context)
|
||||
{
|
||||
return Minecraft.getMinecraft().thePlayer;
|
||||
if(FMLCommonHandler.instance().getEffectiveSide().isServer())
|
||||
{
|
||||
return context.getServerHandler().playerEntity;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Minecraft.getMinecraft().thePlayer;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user