Skip to content

Commit

Permalink
fix: Crafter not checking for the full amount of energy being present.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rover656 committed Sep 27, 2024
1 parent cfccad3 commit 0d7db04
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ private int ticksForAction() {
}

private boolean hasPowerToCraft() {
return this.energyStorage.consumeEnergy(MachinesConfig.COMMON.ENERGY.CRAFTING_RECIPE_COST.get(), true) > 0;
return this.energyStorage.consumeEnergy(MachinesConfig.COMMON.ENERGY.CRAFTING_RECIPE_COST.get(), true) >=
MachinesConfig.COMMON.ENERGY.CRAFTING_RECIPE_COST.get();
}

private void processOutputBuffer() {
Expand Down

0 comments on commit 0d7db04

Please sign in to comment.