melon-lua 5.2.3__py3-none-any.whl → 5.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- melon_lua/__init__.py +1 -1
- melon_lua/backend/spawn_backend.py +3 -1
- melon_lua/data/spawn_menu_aliases.json +871 -0
- melon_lua/data/spawn_menu_aliases.txt +432 -0
- melon_lua/melsave.py +90 -1
- melon_lua/session.py +75 -5
- melon_lua/spawn_queue.py +23 -2
- melon_lua/world.py +34 -9
- {melon_lua-5.2.3.dist-info → melon_lua-5.2.4.dist-info}/METADATA +3 -2
- {melon_lua-5.2.3.dist-info → melon_lua-5.2.4.dist-info}/RECORD +13 -11
- {melon_lua-5.2.3.dist-info → melon_lua-5.2.4.dist-info}/WHEEL +0 -0
- {melon_lua-5.2.3.dist-info → melon_lua-5.2.4.dist-info}/entry_points.txt +0 -0
- {melon_lua-5.2.3.dist-info → melon_lua-5.2.4.dist-info}/top_level.txt +0 -0
melon_lua/__init__.py
CHANGED
|
@@ -9,7 +9,9 @@ from ..world import WorldContext
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def _format_items(lua, items_dict, sep=None):
|
|
12
|
-
|
|
12
|
+
# Device format is "DisplayName|alias" (see official SpawnCatalog example:
|
|
13
|
+
# alias = entry:match("|([^|]+)$")). Catalog dict is alias → display name.
|
|
14
|
+
arr = [f"{v}|{k}" for k, v in items_dict.items()]
|
|
13
15
|
if sep is None:
|
|
14
16
|
return lua.table_from(arr)
|
|
15
17
|
return sep.join(arr)
|