Skip to content

Commit

Permalink
wip: API rewrite, big refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Jan 9, 2024
1 parent 1711929 commit 8f84cb2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ private void requestCraft(boolean craftFullStack, boolean addToInventory) {
final var selectedRecipe = getSelectedRecipe();
if (selectedRecipe != null) {
final var recipe = selectedRecipe.recipe(player);
Balm.getNetworking().sendToServer(new CraftRecipeMessage(recipe.id(), lockedInputs, craftFullStack, addToInventory));
if (kitchen.canProcess(recipe.value().getType())) {
Balm.getNetworking().sendToServer(new CraftRecipeMessage(recipe.id(), lockedInputs, craftFullStack, addToInventory));
}
}
}

Expand Down

0 comments on commit 8f84cb2

Please sign in to comment.