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