Return unhandled on desktop crafting instead of hitting errors

This commit is contained in:
Dylan K. Taylor 2017-08-17 18:34:21 +01:00
parent be4f48a119
commit 9efd350e78

View File

@ -2888,9 +2888,9 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$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);
return true;
return false;
}
$canCraft = true;