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

@ -171,4 +171,8 @@ class ShapedRecipe implements CraftingRecipe{
public function registerToCraftingManager(CraftingManager $manager){
$manager->registerShapedRecipe($this);
}
public function requiresCraftingTable() : bool{
return $this->getHeight() > 2 or $this->getWidth() > 2;
}
}