diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemInfraredGoggles.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemInfraredGoggles.java index 29762112c..d107daedb 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemInfraredGoggles.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemInfraredGoggles.java @@ -54,7 +54,7 @@ public class ItemInfraredGoggles extends ItemArmorAA{ if(!this.cachedGlowingEntities.isEmpty()){ for(Entity entity : this.cachedGlowingEntities){ - if(entity.getDistanceSq(player.posX, player.posY, player.posZ) > range*range){ + if(entity.isDead || entity.getDistanceSq(player.posX, player.posY, player.posZ) > range*range){ entity.setGlowing(false); this.cachedGlowingEntities.remove(entity);