Use UUIDs instead of entity ids for storing invisible players

This commit is contained in:
johni0702
2015-06-01 14:35:34 +02:00
parent 2918e163d2
commit 4c5e084edc
4 changed files with 18 additions and 20 deletions

View File

@@ -20,7 +20,7 @@ public class InvisibilityRender extends RenderPlayer {
@Override
public boolean shouldRender(Entity entity, ICamera camera, double camX, double camY, double camZ) {
if(PlayerHandler.isHidden(entity.getEntityId()) ||
if(PlayerHandler.isHidden(entity.getUniqueID()) ||
(ReplayHandler.isInReplay() && entity == Minecraft.getMinecraft().thePlayer)) return false;
return super.shouldRender(entity, camera, camX, camY, camZ);
}