Only render the accessories for your local client. Accessories are not synced accross clients. #940

This commit is contained in:
Bernhard Bonigl committed 2014-09-24 10:05:20 +02:00
1 parent 1cd4f214ff
commit 9d640c25c7
1 file changed
+6
@@ -406,6 +406,12 @@ public class ArmorProxyClient extends ArmorProxyCommon
float partialTick = event.partialRenderTick;
EntityPlayer player = event.entityPlayer;
// todo: synchronize extra armor with other clients. Until then, only draw locally
if(player != Minecraft.getMinecraft().thePlayer)
return;
float posX = (float) (player.lastTickPosX + (player.posX - player.lastTickPosX) * partialTick);
float posY = (float) (player.lastTickPosY + (player.posY - player.lastTickPosY) * partialTick);
float posZ = (float) (player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * partialTick);