Fixed light and necromancy spells not producing particle effects when recalling their entities

This commit is contained in:
Sollace 2022-01-02 00:43:56 +02:00
parent c27aad9154
commit 13402ae020
2 changed files with 6 additions and 0 deletions

View file

@ -75,6 +75,9 @@ public class LightSpell extends AbstractSpell {
@Override @Override
public void onDestroyed(Caster<?> caster) { public void onDestroyed(Caster<?> caster) {
if (caster.isClient()) {
return;
}
lights.forEach(ref -> { lights.forEach(ref -> {
ref.ifPresent(caster.getWorld(), e -> { ref.ifPresent(caster.getWorld(), e -> {
e.world.sendEntityStatus(e, (byte)60); e.world.sendEntityStatus(e, (byte)60);

View file

@ -113,6 +113,9 @@ public class NecromancySpell extends AbstractAreaEffectSpell {
@Override @Override
public void onDestroyed(Caster<?> caster) { public void onDestroyed(Caster<?> caster) {
if (caster.isClient()) {
return;
}
LivingEntity master = caster.getMaster(); LivingEntity master = caster.getMaster();
summonedEntities.forEach(ref -> { summonedEntities.forEach(ref -> {
ref.ifPresent(caster.getWorld(), e -> { ref.ifPresent(caster.getWorld(), e -> {