Fixed dead placeable spells not being fully removed from the player

This commit is contained in:
Sollace 2022-09-18 11:35:35 +02:00
parent f5c643ed50
commit 47db6d49ee

View file

@ -156,6 +156,10 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS
getSpellEntity(source).ifPresent(e -> { getSpellEntity(source).ifPresent(e -> {
castEntity.set(null); castEntity.set(null);
}); });
if (source.getEntity() instanceof CastSpellEntity spellcast) {
Ether.get(source.getReferenceWorld()).remove(getType(), source);
}
} }
super.onDestroyed(source); super.onDestroyed(source);
} }