1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix registered_craftitems not populated in async env

This commit is contained in:
sfan5 2023-08-14 15:07:16 +02:00
parent f9c881eb5a
commit f6bddc4e8d
2 changed files with 3 additions and 1 deletions

View file

@ -14,6 +14,8 @@ local function do_tests()
assert(type(meta) == "userdata")
assert(type(meta.set_tool_capabilities) == "function")
assert(core.registered_items[""])
assert(next(core.registered_nodes) ~= nil)
assert(core.registered_craftitems["unittests:stick"])
-- alias handling
assert(core.registered_items["unittests:steel_ingot_alias"].name ==
"unittests:steel_ingot")