Fix hand of invisible spectated player being visible (fixes #59)

This commit is contained in:
johni0702
2017-01-28 12:54:42 +01:00
parent f7460f9bf5
commit d61d0ac670
2 changed files with 21 additions and 0 deletions

View File

@@ -252,6 +252,15 @@ public class CameraEntity extends EntityPlayerSP {
return false;
}
@Override
public boolean isInvisible() {
Entity view = mc.getRenderViewEntity();
if (view != this) {
return view.isInvisible();
}
return super.isInvisible();
}
@Override
public ResourceLocation getLocationSkin() {
Entity view = mc.getRenderViewEntity();