Smashed the Stupid out of Memory

This commit is contained in:
Daniel Mills
2020-01-19 02:58:29 -05:00
parent 445ce46357
commit f5ab7f3102
7 changed files with 74 additions and 25 deletions

View File

@@ -468,4 +468,9 @@ public class GenObject
recalculateMountShift();
}
}
public void dispose()
{
s.clear();
}
}

View File

@@ -220,4 +220,15 @@ public class GenObjectGroup
L.i(ChatColor.LIGHT_PURPLE + "Processed " + ChatColor.WHITE + F.f(schematics.size()) + ChatColor.LIGHT_PURPLE + " Schematics in " + ChatColor.WHITE + name);
}
public void dispose()
{
for(GenObject i : schematics)
{
i.dispose();
}
schematics.clear();
flags.clear();
}
}