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
@@ -134,7 +134,7 @@ public class VibrationChamberBlockEntity extends AENetworkInvBlockEntity impleme
}
private boolean canEatFuel() {
final ItemStack is = this.inv.getStackInSlot(0);
final ItemStack is = this.inv.getInvStack(0);
if (!is.isEmpty()) {
final int newBurnTime = ForgeHooks.getBurnTime(is);
if (newBurnTime > 0 && is.getCount() > 0) {
@@ -206,7 +206,7 @@ public class VibrationChamberBlockEntity extends AENetworkInvBlockEntity impleme
}
private void eatFuel() {
final ItemStack is = this.inv.getStackInSlot(0);
final ItemStack is = this.inv.getInvStack(0);
if (!is.isEmpty()) {
final int newBurnTime = ForgeHooks.getBurnTime(is);
if (newBurnTime > 0 && is.getCount() > 0) {
@@ -214,7 +214,7 @@ public class VibrationChamberBlockEntity extends AENetworkInvBlockEntity impleme
this.setMaxBurnTime(this.getBurnTime());
final Item fuelItem = is.getItem();
is.shrink(1);
is.decrement(1);
if (is.isEmpty()) {
this.inv.setStackInSlot(0, fuelItem.getRecipeRemainder(is));