Implement tags !

This commit is contained in:
2026-09-30 13:41:29 -03:00
parent dc70ada7c4
commit 342b45d593
51 changed files with 978 additions and 219 deletions
+2 -2
View File
@@ -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;