mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-07 10:31:51 +00:00
ShapedRecipe: fixed bug in constructor
This commit is contained in:
parent
a6d7365a28
commit
81ecb56095
@ -68,7 +68,7 @@ class ShapedRecipe implements CraftingRecipe{
|
|||||||
$shape = array_values($shape);
|
$shape = array_values($shape);
|
||||||
|
|
||||||
$columnCount = strlen($shape[0]);
|
$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");
|
throw new \InvalidArgumentException("Shaped recipes may only have 1, 2 or 3 columns, not $columnCount");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user