Reduced garbage allocation

This commit is contained in:
Anuken
2020-06-29 15:58:48 -04:00
parent d58e3ac235
commit bf5dd7386e
6 changed files with 24 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ public class Universe{
private int turn;
private float turnCounter;
private Schematic lastLoadout = Loadouts.basicShard;
private Schematic lastLoadout;
private Seq<ItemStack> lastLaunchResources = new Seq<>();
public Universe(){
@@ -94,6 +94,7 @@ public class Universe{
}
public Schematic getLastLoadout(){
if(lastLoadout == null) lastLoadout = Loadouts.basicShard;
return lastLoadout;
}