Skip to content

Commit

Permalink
Only render the accessories for your local client. Accessories are no…
Browse files Browse the repository at this point in the history
…t synced accross clients. #940
  • Loading branch information
bonii-xx committed Sep 24, 2014
1 parent 1cd4f21 commit 9d640c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/tconstruct/armor/ArmorProxyClient.java
Expand Up @@ -406,6 +406,12 @@ void renderArmorExtras (RenderPlayerEvent.SetArmorModel event)
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);
Expand Down

0 comments on commit 9d640c2

Please sign in to comment.