Skip to content

Commit

Permalink
Fix shift crafting (#6433)
Browse files Browse the repository at this point in the history
This field was added to the action in 1.21.20. Previously, the client would behave as if clicking the crafting result slot many times. Now it behaves more like recipe book shift-clicking.
  • Loading branch information
dries-c authored Aug 22, 2024
1 parent bdbcfd1 commit ede363e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/mcpe/handler/ItemStackRequestExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ protected function processItemStackRequestAction(ItemStackRequestAction $action)
$this->setNextCreatedItem($window->getOutput($optionId));
}
}else{
$this->beginCrafting($action->getRecipeId(), 1);
$this->beginCrafting($action->getRecipeId(), $action->getRepetitions());
}
}elseif($action instanceof CraftRecipeAutoStackRequestAction){
$this->beginCrafting($action->getRecipeId(), $action->getRepetitions());
Expand Down

0 comments on commit ede363e

Please sign in to comment.