mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
CraftingManagerFromDataHelper: fixed recipes with unknown items being registered without said items
This commit is contained in:
parent
65ed7d7794
commit
b61a934c9f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user