Skip to content

Commit

Permalink
fix heater delete fuel, fix #124
Browse files Browse the repository at this point in the history
  • Loading branch information
IAFEnvoy committed Dec 10, 2024
1 parent 88a7d02 commit 89d5e62
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ private int trySolidFuel(Storage<ItemVariant> 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;
Expand All @@ -192,10 +192,8 @@ private int trySolidFuel(Storage<ItemVariant> 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;
Expand Down

0 comments on commit 89d5e62

Please sign in to comment.