v3.0.0: fixed gravity chaos not retaining positive only on save/load

This commit is contained in:
Evan Debenham
2024-10-30 11:39:30 -04:00
parent 02e4b1c6e8
commit d00227220a

View File

@@ -132,16 +132,19 @@ public class GravityChaosTracker extends Buff {
} }
private static final String LEFT = "left"; private static final String LEFT = "left";
private static final String POSITIVE_ONLY = "positive_only";
@Override @Override
public void storeInBundle(Bundle bundle) { public void storeInBundle(Bundle bundle) {
super.storeInBundle(bundle); super.storeInBundle(bundle);
bundle.put(LEFT, left); bundle.put(LEFT, left);
bundle.put(POSITIVE_ONLY, positiveOnly);
} }
@Override @Override
public void restoreFromBundle(Bundle bundle) { public void restoreFromBundle(Bundle bundle) {
super.restoreFromBundle(bundle); super.restoreFromBundle(bundle);
left = bundle.getInt(LEFT); left = bundle.getInt(LEFT);
positiveOnly = bundle.getBoolean(POSITIVE_ONLY);
} }
} }