v2.0.1: added a safety check to unbundling the unstable spellbook
This commit is contained in:
@@ -282,7 +282,9 @@ public class UnstableSpellbook extends Artifact {
|
||||
public void restoreFromBundle( Bundle bundle ) {
|
||||
super.restoreFromBundle(bundle);
|
||||
scrolls.clear();
|
||||
Collections.addAll(scrolls, bundle.getClassArray(SCROLLS));
|
||||
if (bundle.contains(SCROLLS)) {
|
||||
Collections.addAll(scrolls, bundle.getClassArray(SCROLLS));
|
||||
}
|
||||
}
|
||||
|
||||
public class bookRecharge extends ArtifactBuff{
|
||||
|
||||
Reference in New Issue
Block a user