v2.2.0: fixed beacon of returning not bundling its branch value
This commit is contained in:
+3
@@ -183,12 +183,14 @@ public class BeaconOfReturning extends Spell {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final String DEPTH = "depth";
|
private static final String DEPTH = "depth";
|
||||||
|
private static final String BRANCH = "branch";
|
||||||
private static final String POS = "pos";
|
private static final String POS = "pos";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void storeInBundle( Bundle bundle ) {
|
public void storeInBundle( Bundle bundle ) {
|
||||||
super.storeInBundle( bundle );
|
super.storeInBundle( bundle );
|
||||||
bundle.put( DEPTH, returnDepth );
|
bundle.put( DEPTH, returnDepth );
|
||||||
|
bundle.put( BRANCH, returnBranch );
|
||||||
if (returnDepth != -1) {
|
if (returnDepth != -1) {
|
||||||
bundle.put( POS, returnPos );
|
bundle.put( POS, returnPos );
|
||||||
}
|
}
|
||||||
@@ -198,6 +200,7 @@ public class BeaconOfReturning extends Spell {
|
|||||||
public void restoreFromBundle( Bundle bundle ) {
|
public void restoreFromBundle( Bundle bundle ) {
|
||||||
super.restoreFromBundle(bundle);
|
super.restoreFromBundle(bundle);
|
||||||
returnDepth = bundle.getInt( DEPTH );
|
returnDepth = bundle.getInt( DEPTH );
|
||||||
|
returnBranch = bundle.getInt( BRANCH );
|
||||||
returnPos = bundle.getInt( POS );
|
returnPos = bundle.getInt( POS );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user