Don't save the lowest level to file.

This commit is contained in:
Brianna 2020-01-16 17:21:27 -05:00
parent 5666ef6942
commit b6bde40ce7

View File

@ -31,7 +31,7 @@ public abstract class Storage {
* Dump HopperManager to file.
*/
for (Hopper hopper : new ArrayList<>(instance.getHopperManager().getHoppers().values())) {
if (hopper.getLevel() == null || hopper.getLocation() == null)
if (hopper.getLevel() == null || hopper.getLocation() == null || hopper.getLevel() == instance.getLevelManager().getLowestLevel())
continue;
String locationStr = Methods.serializeLocation(hopper.getLocation());