Still need to check this, since not being allied and being a valid target are not necessarily equivalent

This commit is contained in:
Electroblob77
2020-08-15 23:21:32 +01:00
parent 0c046e8c29
commit c90ec248cd
@@ -101,7 +101,7 @@ public class EntityRadiantTotem extends EntityScaledConstruct {
EntityLivingBase target = nearby.remove(0);
if(EntityUtils.isLiving(target)){
if(EntityUtils.isLiving(target) && isValidTarget(target)){
if(target.ticksExisted % target.maxHurtResistantTime == 1){