From d00227220ac0302305b70b4a933a71ac40878e85 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 30 Oct 2024 11:39:30 -0400 Subject: [PATCH] v3.0.0: fixed gravity chaos not retaining positive only on save/load --- .../actors/buffs/GravityChaosTracker.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/GravityChaosTracker.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/GravityChaosTracker.java index 025975077..6a143440c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/GravityChaosTracker.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/GravityChaosTracker.java @@ -132,16 +132,19 @@ public class GravityChaosTracker extends Buff { } private static final String LEFT = "left"; + private static final String POSITIVE_ONLY = "positive_only"; @Override public void storeInBundle(Bundle bundle) { super.storeInBundle(bundle); bundle.put(LEFT, left); + bundle.put(POSITIVE_ONLY, positiveOnly); } @Override public void restoreFromBundle(Bundle bundle) { super.restoreFromBundle(bundle); left = bundle.getInt(LEFT); + positiveOnly = bundle.getBoolean(POSITIVE_ONLY); } }