Fix Client/Server issues.

This commit is contained in:
Ben Spiers committed 2014-07-07 23:33:48 +01:00
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;
}
}
}