Skip to content

Commit

Permalink
fix off by one crafting
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Jan 30, 2025
1 parent 8d92a30 commit 9dda6ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public void readOnServer(int id, PacketBuffer buf) {
if (recipeLogic.isRecipeValid() && this.slot.canTakeStack(getSyncManager().getPlayer())) {
if (recipeLogic.performRecipe()) {
ItemStack craftedStack = getOutputStack();
handleItemCraft(craftedStack, getSyncManager().getPlayer());

if (data.shift) {
ItemStack finalStack = craftedStack.copy();
Expand All @@ -138,7 +139,6 @@ public void readOnServer(int id, PacketBuffer buf) {
quickTransfer(finalStack);
} else {
syncToClient(SYNC_STACK, this::syncCraftedStack);
handleItemCraft(craftedStack, getSyncManager().getPlayer());
}
}
}
Expand Down

0 comments on commit 9dda6ae

Please sign in to comment.