fix the early return

This commit is contained in:
endernon 2025-01-03 23:23:19 +00:00
parent e6fe118201
commit e90124c4df

View file

@ -129,7 +129,7 @@ fn cook(
match json_config.item_type {
ItemTypeDeser::CraftedGear | ItemTypeDeser::CraftedConsu => {
if let Some(real_crafted_type) = json_config.crafted_type {
return encode_typedata_custom(&mut fr_params, &real_crafted_type);
encode_typedata_custom(&mut fr_params, &real_crafted_type)?;
}
else {
return Err(JsonNotFoundCraftedType)