mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
remove dead entities
This commit is contained in:
parent
bdabd081be
commit
910f4aaf9e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue