mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +01:00
fixed soulstrider armor applying an effect that reaches towards 0, 0, 0
closes #336
This commit is contained in:
parent
7b17349917
commit
323fadab82
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ public class ItemArmor extends ArmorItem implements IModItem {
|
|||
if (source instanceof LivingEntity)
|
||||
((LivingEntity) source).addEffect(new MobEffectInstance(MobEffects.WITHER, 40));
|
||||
} else if (ItemArmor.isFullSetEquipped(entity, ModArmorMaterial.DEPTH)) {
|
||||
for (var other : entity.level().getEntitiesOfClass(LivingEntity.class, new AABB(entity.position(), Vec3.ZERO).inflate(2))) {
|
||||
for (var other : entity.level().getEntitiesOfClass(LivingEntity.class, new AABB(entity.position(), entity.position()).inflate(2))) {
|
||||
if (other != entity && (!(entity instanceof Player player) || !player.isAlliedTo(other)))
|
||||
other.addEffect(new MobEffectInstance(MobEffects.MOVEMENT_SLOWDOWN, 60, 255));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue