Utils ported

This commit is contained in:
Sebastian Hartte
2020-06-28 13:28:14 +02:00
parent fee5b7fdfc
commit 46955643b9
105 changed files with 239 additions and 379 deletions
@@ -102,7 +102,7 @@ public class CondenserBlockEntity extends AEBaseInvBlockEntity implements IConfi
}
public double getStorage() {
final ItemStack is = this.storageSlot.getStackInSlot(0);
final ItemStack is = this.storageSlot.getInvStack(0);
if (!is.isEmpty()) {
if (is.getItem() instanceof IStorageComponent) {
final IStorageComponent sc = (IStorageComponent) is.getItem();
@@ -247,7 +247,7 @@ public class CondenserBlockEntity extends AEBaseInvBlockEntity implements IConfi
}
@Override
public int getSlotLimit(int slot) {
public int getMaxAmount(int slot, ItemStack is) {
return 64;
}
}