mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Fixed handling of recipes that require a crafting table
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user