Fixed #3222 / Fixed #3218 / Fixed #3228 / Fixed #3217

This commit is contained in:
Anuken
2020-11-01 09:28:03 -05:00
parent 54ba4b31a1
commit 187cb79265
7 changed files with 33 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ public class Universe{
private int turn;
private float turnCounter;
private Schematic lastLoadout;
private @Nullable Schematic lastLoadout;
private ItemSeq lastLaunchResources = new ItemSeq();
public Universe(){
@@ -92,6 +92,15 @@ public class Universe{
}
}
public void clearLoadoutInfo(){
lastLoadout = null;
lastLaunchResources = new ItemSeq();
Core.settings.remove("launch-resources-seq");
Core.settings.remove("lastloadout-core-shard");
Core.settings.remove("lastloadout-core-nucleus");
Core.settings.remove("lastloadout-core-foundation");
}
public ItemSeq getLaunchResources(){
lastLaunchResources = Core.settings.getJson("launch-resources-seq", ItemSeq.class, ItemSeq::new);
return lastLaunchResources;