From 25d84412a4fff6add313b1f8fa6eeb3782f02298 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 21 Jul 2023 11:35:46 -0400 Subject: [PATCH] v2.2.0: fixed beacon of returning not bundling its branch value --- .../shatteredpixeldungeon/items/spells/BeaconOfReturning.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/BeaconOfReturning.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/BeaconOfReturning.java index 6e7dd0186..9111dea00 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/BeaconOfReturning.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/BeaconOfReturning.java @@ -183,12 +183,14 @@ public class BeaconOfReturning extends Spell { } private static final String DEPTH = "depth"; + private static final String BRANCH = "branch"; private static final String POS = "pos"; @Override public void storeInBundle( Bundle bundle ) { super.storeInBundle( bundle ); bundle.put( DEPTH, returnDepth ); + bundle.put( BRANCH, returnBranch ); if (returnDepth != -1) { bundle.put( POS, returnPos ); } @@ -198,6 +200,7 @@ public class BeaconOfReturning extends Spell { public void restoreFromBundle( Bundle bundle ) { super.restoreFromBundle(bundle); returnDepth = bundle.getInt( DEPTH ); + returnBranch = bundle.getInt( BRANCH ); returnPos = bundle.getInt( POS ); }