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 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);
}
}