mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
Return unhandled on desktop crafting instead of hitting errors
This commit is contained in:
parent
be4f48a119
commit
9efd350e78
@ -2888,9 +2888,9 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
|
|
||||||
$recipe = $this->server->getCraftingManager()->getRecipe($packet->id);
|
$recipe = $this->server->getCraftingManager()->getRecipe($packet->id);
|
||||||
|
|
||||||
if($recipe === null or (($recipe instanceof BigShapelessRecipe or $recipe instanceof BigShapedRecipe) and $this->craftingType === 0)){
|
if($recipe === null or (($recipe instanceof BigShapelessRecipe or $recipe instanceof BigShapedRecipe) and $this->craftingType === 0) or count($packet->input) === 0){
|
||||||
$this->inventory->sendContents($this);
|
$this->inventory->sendContents($this);
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$canCraft = true;
|
$canCraft = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user