ShapedRecipe: fixed bug in constructor

This commit is contained in:
Dylan K. Taylor 2018-03-27 12:00:20 +01:00
parent a6d7365a28
commit 81ecb56095

View File

@ -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");
}