From 0262465a26b09516d5d22ca8c79faeef1fdd7c0e Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 20 Sep 2017 11:19:15 +0100 Subject: [PATCH] Fixed dupe cake glitch this is what happens when you try to be clever when not properly awake --- src/pocketmine/inventory/CraftingManager.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pocketmine/inventory/CraftingManager.php b/src/pocketmine/inventory/CraftingManager.php index a73132aa5..62566117c 100644 --- a/src/pocketmine/inventory/CraftingManager.php +++ b/src/pocketmine/inventory/CraftingManager.php @@ -66,8 +66,7 @@ class CraftingManager{ $this->registerRecipe($result); break; case 1: - $outputs = $recipe["output"]; - $first = array_shift($outputs); + $first = array_shift($recipe["output"]); $this->registerRecipe(new ShapedRecipe( Item::jsonDeserialize($first),