Removed item core restrictions

This commit is contained in:
Anuken
2020-06-29 19:32:15 -04:00
parent 810a59f146
commit df4278a646
11 changed files with 10 additions and 38 deletions

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().count(i -> i.type == ItemType.material))
() -> e.items().total() / ((float)e.storageCapacity * content.items().size)
));
bars.add("units", e ->
@@ -154,7 +154,7 @@ public class CoreBlock extends StorageBlock{
@Override
public int getMaximumAccepted(Item item){
return item.type == ItemType.material ? storageCapacity : 0;
return storageCapacity;
}
@Override