mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-09-30 00:27:28 +02:00
Improved on last saving upgrade.
This commit is contained in:
parent
de7747b8c1
commit
5d98dea24b
@ -31,7 +31,10 @@ public abstract class Storage {
|
||||
* Dump HopperManager to file.
|
||||
*/
|
||||
for (Hopper hopper : new ArrayList<>(instance.getHopperManager().getHoppers().values())) {
|
||||
if (hopper.getLevel() == null || hopper.getLocation() == null || hopper.getLevel() == instance.getLevelManager().getLowestLevel())
|
||||
if (hopper.getLevel() == null
|
||||
|| hopper.getLocation() == null
|
||||
|| hopper.getLevel() == instance.getLevelManager().getLowestLevel()
|
||||
&& (hopper.getLinkedBlocks() == null || hopper.getLinkedBlocks().isEmpty()))
|
||||
continue;
|
||||
|
||||
String locationStr = Methods.serializeLocation(hopper.getLocation());
|
||||
|
Loading…
Reference in New Issue
Block a user