mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +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()){
|
if(!this.cachedGlowingEntities.isEmpty()){
|
||||||
for(Entity entity : this.cachedGlowingEntities){
|
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);
|
entity.setGlowing(false);
|
||||||
|
|
||||||
this.cachedGlowingEntities.remove(entity);
|
this.cachedGlowingEntities.remove(entity);
|
||||||
|
|
Loading…
Reference in a new issue