mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Fixed #1674 Wooden tools only craft with Oak wood
This commit is contained in:
parent
a816234ee8
commit
3c231118a6
@ -195,7 +195,7 @@ class CraftingManager{
|
|||||||
];
|
];
|
||||||
for($i = 1; $i < 2; ++$i){
|
for($i = 1; $i < 2; ++$i){
|
||||||
foreach($types[$i] as $j => $type){
|
foreach($types[$i] as $j => $type){
|
||||||
$this->registerRecipe((new BigShapelessRecipe(Item::get($type, 0, 1)))->addIngredient(Item::get($types[0][$j], 0, $cost[$i - 1]))->addIngredient(Item::get(Item::STICK, 0, 1)));
|
$this->registerRecipe((new BigShapelessRecipe(Item::get($type, 0, 1)))->addIngredient(Item::get($types[0][$j], null, $cost[$i - 1]))->addIngredient(Item::get(Item::STICK, 0, 1)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ class CraftingManager{
|
|||||||
];
|
];
|
||||||
for($i = 1; $i < 5; ++$i){
|
for($i = 1; $i < 5; ++$i){
|
||||||
foreach($types[$i] as $j => $type){
|
foreach($types[$i] as $j => $type){
|
||||||
$this->registerRecipe((new BigShapelessRecipe(Item::get($type, 0, 1)))->addIngredient(Item::get($types[0][$j], 0, $cost[$i - 1]))->addIngredient(Item::get(Item::STICK, 0, 2)));
|
$this->registerRecipe((new BigShapelessRecipe(Item::get($type, 0, 1)))->addIngredient(Item::get($types[0][$j], null, $cost[$i - 1]))->addIngredient(Item::get(Item::STICK, 0, 2)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user