FIx for a weird storage issue.

This commit is contained in:
Brianna 2019-12-04 16:44:29 -05:00
parent 109fd75dbd
commit 9962c91efc

View File

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