In first-person spectator mode, render the items in the players hand if it's invisible, only the hand should be invisible

This commit is contained in:
CrushedPixel
2015-09-04 17:45:27 +02:00
parent 2f522c68fe
commit 1b8c5dc47a

View File

@@ -40,7 +40,7 @@ public class SpectatorRenderer {
} }
public void renderSpectatorHand(EntityPlayer entityPlayer, float partialTicks, int renderPass) { public void renderSpectatorHand(EntityPlayer entityPlayer, float partialTicks, int renderPass) {
if(entityPlayer.isInvisible()) return; if(entityPlayer.isInvisible() && itemToRender == null) return;
if (entityPlayer != currentPlayer) { if (entityPlayer != currentPlayer) {
updateNow(entityPlayer); updateNow(entityPlayer);