mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Fixed light spell not recalling its entities when cancelled
This commit is contained in:
parent
1a3eb9f0f6
commit
7d0b7ae9f6
1 changed files with 10 additions and 0 deletions
|
@ -73,6 +73,16 @@ public class LightSpell extends AbstractSpell {
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyed(Caster<?> caster) {
|
||||
lights.forEach(ref -> {
|
||||
ref.ifPresent(caster.getWorld(), e -> {
|
||||
e.world.sendEntityStatus(e, (byte)60);
|
||||
e.discard();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toNBT(NbtCompound compound) {
|
||||
super.toNBT(compound);
|
||||
|
|
Loading…
Reference in a new issue