Fix crash when discarding a spell

This commit is contained in:
Sollace 2024-02-18 14:39:18 +00:00
parent 2abeff5767
commit d07b7bd5a2
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -103,7 +103,8 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS
@Override
public Collection<Spell> getDelegates() {
return List.of(spell.get());
Spell spell = this.spell.get();
return spell == null ? List.of() : List.of(spell);
}
@Override