Fixed siphoning spell not dying properly/duplicating its particle each time

This commit is contained in:
Sollace 2021-03-05 20:53:17 +02:00
parent 4c1f5a4ba5
commit 690613b950

View file

@ -47,7 +47,7 @@ public class SiphoningSpell extends AbstractPlacedSpell {
source.addParticle(direction == 1 ? ParticleTypes.HEART : ParticleTypes.ANGRY_VILLAGER, pos, velocity);
}
});
}
} else {
if (source.getWorld().getTime() % 10 != 0) {
return true;
@ -58,8 +58,8 @@ public class SiphoningSpell extends AbstractPlacedSpell {
} else {
collectHealth(source);
}
return true;
}
return !isDead();
}
private Stream<LivingEntity> getTargets(Caster<?> source) {