Implement tags !
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Container, ItemStack } from "$/common/inventory.ts";
|
||||
import { CRAFTING_RESULT_SLOT } from "$/common/protocol.ts";
|
||||
import { choice_ids, type GridRecipe } from "$/common/mod_data.ts";
|
||||
import { choice_matches, type GridRecipe } from "$/common/mod_data.ts";
|
||||
|
||||
// recipes come from mods, see RecipeBook in common/mod_loader.ts
|
||||
|
||||
@@ -28,7 +28,7 @@ function matches_recipe(grid: (string | undefined)[], recipe: GridRecipe): boole
|
||||
if (
|
||||
choice === undefined
|
||||
? item !== undefined
|
||||
: item === undefined || !choice_ids(choice).includes(item)
|
||||
: item === undefined || !choice_matches(choice, item)
|
||||
) {
|
||||
match = false;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user