Fixed #1674 Wooden tools only craft with Oak wood

This commit is contained in:
Shoghi Cervantes 2014-08-18 14:43:08 +02:00
parent a816234ee8
commit 3c231118a6

View File

@ -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)));
} }
} }