mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Only render the accessories for your local client. Accessories are not synced accross clients. #940
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user