diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 95dc0c6c38..eade81a8a9 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2911,9 +2911,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; diff --git a/tests/plugins/PocketMine-DevTools b/tests/plugins/PocketMine-DevTools index b296436579..4ade26741e 160000 --- a/tests/plugins/PocketMine-DevTools +++ b/tests/plugins/PocketMine-DevTools @@ -1 +1 @@ -Subproject commit b296436579580cc48fc1bdb1b0af4363305991fb +Subproject commit 4ade26741e8050de196e4c12af01b8b42e76e6e7 diff --git a/tests/plugins/PocketMine-TesterPlugin b/tests/plugins/PocketMine-TesterPlugin index 26a03d6d46..e963064839 160000 --- a/tests/plugins/PocketMine-TesterPlugin +++ b/tests/plugins/PocketMine-TesterPlugin @@ -1 +1 @@ -Subproject commit 26a03d6d467f7e505a292610078b65c0205e4ed8 +Subproject commit e963064839334ce95e297df69bfe8af5fa95ab3a