diff --git a/src/main/java/slimeknights/tconstruct/smeltery/block/entity/module/FuelModule.java b/src/main/java/slimeknights/tconstruct/smeltery/block/entity/module/FuelModule.java index cf9d0035ff..f82a2adf56 100644 --- a/src/main/java/slimeknights/tconstruct/smeltery/block/entity/module/FuelModule.java +++ b/src/main/java/slimeknights/tconstruct/smeltery/block/entity/module/FuelModule.java @@ -170,8 +170,8 @@ private int trySolidFuel(Storage handler, boolean consume) { if (time > 0) { if (consume) { try (Transaction tx = TransferUtil.getTransaction()) { - view.extract(view.getResource(), 1, tx); if (view.getResource().matches(stack) && !stack.isEmpty()) { + view.extract(view.getResource(), 1, tx); fuel += time; fuelQuality = time; temperature = SOLID_TEMPERATURE; @@ -192,10 +192,8 @@ private int trySolidFuel(Storage handler, boolean consume) { world.addFreshEntity(itementity); } } - } else { - TConstruct.LOG.error("Invalid item removed from solid fuel handler"); - } - tx.commit(); + tx.commit(); + } else tx.abort(); } } return SOLID_TEMPERATURE;