From f2e3431251d7b239d29d8ebc8503287e84252219 Mon Sep 17 00:00:00 2001 From: Vanic Date: Fri, 13 Feb 2026 21:31:22 +0300 Subject: [PATCH] Add `core.objects_by_guid` annotation, change annotation for `core.object_refs` --- core_namespace.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core_namespace.lua b/core_namespace.lua index fed11b1..7d56760 100644 --- a/core_namespace.lua +++ b/core_namespace.lua @@ -2326,6 +2326,9 @@ core.registered_tools = {} --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5846-L5850) --- @type table|EntityDefinition[] core.registered_entities = {} +--- * Map of active object references, indexed by object GUID +core.objects_by_guid = {} +--- * **Obsolete**: Use `core.objects_by_guid` instead. GUIDs are strictly more useful than active object IDs. --- * Map of object references, indexed by active object id --- --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5851-L5852)