This commit is contained in:
Anuken
2020-06-29 21:22:12 -04:00
parent df4278a646
commit c2c0c3fd08
3 changed files with 3 additions and 2 deletions

View File

@@ -234,6 +234,7 @@ public class MapEditorDialog extends Dialog implements Disposable{
show();
state.rules = (lastSavedRules == null ? new Rules() : lastSavedRules);
lastSavedRules = null;
saved = false;
editor.renderer().updateAll();
}

View File

@@ -76,7 +76,7 @@ public class CoreBlock extends StorageBlock{
new Bar(
() -> Core.bundle.format("bar.capacity", ui.formatAmount(e.storageCapacity)),
() -> Pal.items,
() -> e.items().total() / ((float)e.storageCapacity * content.items().size)
() -> e.items().total() / ((float)e.storageCapacity * content.items().count(i -> i.unlockedNow()))
));
bars.add("units", e ->