Fix shift crafting (#6433)

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.
This commit is contained in:
Dries C 2024-08-22 22:53:21 +02:00 committed by GitHub
parent bdbcfd10cc
commit ede363eb0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -343,7 +343,7 @@ class ItemStackRequestExecutor{
$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());