Skip to content

Commit

Permalink
fix: null point
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Aug 22, 2024
1 parent 178c3cd commit d029f1b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ protected void tick(Block b, SlimefunBlockData data) {
}
}
} else {
MachineRecipe next = findNextRecipe(inv).clone();
if (next != null) {
MachineRecipe recipe = findNextRecipe(inv);
if (recipe != null) {
MachineRecipe next = recipe.clone();
int speed = getIncreasedSpeed(data);
next.setTicks(next.getTicks() / speed);
currentOperation = new CraftingOperation(next);
Expand Down

0 comments on commit d029f1b

Please sign in to comment.