From 81ecb56095e8c7b4140978dda6d12efa3cb65d52 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 27 Mar 2018 12:00:20 +0100 Subject: [PATCH] ShapedRecipe: fixed bug in constructor --- src/pocketmine/inventory/ShapedRecipe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/inventory/ShapedRecipe.php b/src/pocketmine/inventory/ShapedRecipe.php index c3909c0d8..f6bddae8b 100644 --- a/src/pocketmine/inventory/ShapedRecipe.php +++ b/src/pocketmine/inventory/ShapedRecipe.php @@ -68,7 +68,7 @@ class ShapedRecipe implements CraftingRecipe{ $shape = array_values($shape); $columnCount = strlen($shape[0]); - if($columnCount > 3 or $rowCount <= 0){ + if($columnCount > 3 or $columnCount <= 0){ throw new \InvalidArgumentException("Shaped recipes may only have 1, 2 or 3 columns, not $columnCount"); }