mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fix crash when discarding a spell
This commit is contained in:
parent
2abeff5767
commit
d07b7bd5a2
1 changed files with 2 additions and 1 deletions
|
@ -103,7 +103,8 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Collection<Spell> getDelegates() {
|
public Collection<Spell> getDelegates() {
|
||||||
return List.of(spell.get());
|
Spell spell = this.spell.get();
|
||||||
|
return spell == null ? List.of() : List.of(spell);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue