Does not render Players at all if they're invisible (e.g. Spectator Mode) - resolving https://trello.com/c/Hy1NaAKu/

Does not render crosshair if hovering over invisible players
This commit is contained in:
CrushedPixel
2015-06-29 15:44:01 +02:00
parent fb12119e5c
commit 7c46259f54
2 changed files with 2 additions and 2 deletions

View File

@@ -11,6 +11,6 @@ public class SpectatingHandler {
private static Minecraft mc = Minecraft.getMinecraft();
public static boolean canSpectate(Entity e) {
return ((e instanceof EntityPlayer || e instanceof EntityLiving || e instanceof EntityItemFrame) && e != mc.thePlayer);
return ((e instanceof EntityPlayer || e instanceof EntityLiving || e instanceof EntityItemFrame) && e != mc.thePlayer && !e.isInvisible());
}
}