Fixed handling of recipes that require a crafting table

This commit is contained in:
Dylan K. Taylor
2017-09-20 09:43:49 +01:00
parent fd33a65e3b
commit f0755d1659
6 changed files with 11 additions and 59 deletions

View File

@ -132,4 +132,8 @@ class ShapelessRecipe implements CraftingRecipe{
public function registerToCraftingManager(CraftingManager $manager){
$manager->registerShapelessRecipe($this);
}
public function requiresCraftingTable() : bool{
return count($this->ingredients) > 4;
}
}