mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-03-03 16:51:28 +01:00
Fixed dead placeable spells not being fully removed from the player
This commit is contained in:
parent
f5c643ed50
commit
47db6d49ee
1 changed files with 4 additions and 0 deletions
|
@ -156,6 +156,10 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS
|
|||
getSpellEntity(source).ifPresent(e -> {
|
||||
castEntity.set(null);
|
||||
});
|
||||
|
||||
if (source.getEntity() instanceof CastSpellEntity spellcast) {
|
||||
Ether.get(source.getReferenceWorld()).remove(getType(), source);
|
||||
}
|
||||
}
|
||||
super.onDestroyed(source);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue