v3.0.0: fixed gravity chaos not retaining positive only on save/load
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user