mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 15:36:08 +00:00
CraftingManagerFromDataHelper: fixed recipes with unknown items being registered without said items
This commit is contained in:
@@ -105,7 +105,7 @@ final class CraftingManagerFromDataHelper{
|
||||
foreach($recipe["input"] as $inputData){
|
||||
$input = $ingredientDeserializerFunc($inputData);
|
||||
if($input === null){ //unknown input item
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
$inputs[] = $input;
|
||||
}
|
||||
@@ -127,7 +127,7 @@ final class CraftingManagerFromDataHelper{
|
||||
foreach($recipe["input"] as $symbol => $inputData){
|
||||
$input = $ingredientDeserializerFunc($inputData);
|
||||
if($input === null){ //unknown input item
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
$inputs[$symbol] = $input;
|
||||
}
|
||||
|
Reference in New Issue
Block a user