mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-26 04:43:45 +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){
|
foreach($recipe["input"] as $inputData){
|
||||||
$input = $ingredientDeserializerFunc($inputData);
|
$input = $ingredientDeserializerFunc($inputData);
|
||||||
if($input === null){ //unknown input item
|
if($input === null){ //unknown input item
|
||||||
continue;
|
continue 2;
|
||||||
}
|
}
|
||||||
$inputs[] = $input;
|
$inputs[] = $input;
|
||||||
}
|
}
|
||||||
@ -127,7 +127,7 @@ final class CraftingManagerFromDataHelper{
|
|||||||
foreach($recipe["input"] as $symbol => $inputData){
|
foreach($recipe["input"] as $symbol => $inputData){
|
||||||
$input = $ingredientDeserializerFunc($inputData);
|
$input = $ingredientDeserializerFunc($inputData);
|
||||||
if($input === null){ //unknown input item
|
if($input === null){ //unknown input item
|
||||||
continue;
|
continue 2;
|
||||||
}
|
}
|
||||||
$inputs[$symbol] = $input;
|
$inputs[$symbol] = $input;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user