aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/inventory.py
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-03-02 18:53:36 -0530
committermat <git@matdoes.dev>2026-03-02 19:23:44 -0500
commit782db2e05cb9ea1b8dbd1ab7f5ff2eac29737fef (patch)
tree2f420e585267098189c94ecae2dc886c4136216f /codegen/lib/code/inventory.py
parent8fd11c174d921a8085bb7e67ae62958e23d174cb (diff)
downloadazalea-drasl-782db2e05cb9ea1b8dbd1ab7f5ff2eac29737fef.tar.xz
disambiguate non-minecraft identifier namespaces in codegen
Diffstat (limited to 'codegen/lib/code/inventory.py')
-rw-r--r--codegen/lib/code/inventory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/codegen/lib/code/inventory.py b/codegen/lib/code/inventory.py
index 066319e0..7acb269d 100644
--- a/codegen/lib/code/inventory.py
+++ b/codegen/lib/code/inventory.py
@@ -1,5 +1,5 @@
from typing import Any
-from lib.utils import to_camel_case, get_dir_location
+from lib.utils import identifier_to_path, to_camel_case, get_dir_location
# The directory where declare_menus! {} is done
inventory_menus_dir = get_dir_location("../azalea-inventory/src/lib.rs")
@@ -128,4 +128,4 @@ def update_menus(initial_menu_entries: dict[str, Any]):
def menu_name_to_enum_name(menu_name: str) -> str:
- return to_camel_case(menu_name.split(":")[-1])
+ return to_camel_case(identifier_to_path(menu_name))