diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index 073483d4..8de651ef 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -210,7 +210,7 @@ -- - select_horiz_by_yawpitch=false) -- - ^ Select sprite from spritesheet with optional animation and DM-style -- - texture selection based on yaw relative to camera --- - get_entity_name() +-- - get_entity_name() (DEPRECATED: Will be removed in a future version) -- - get_luaentity() -- Player-only: (no-op for other objects) -- - get_player_name(): will return nil if is not a player diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index dbbaf3dc..35b59733 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -2026,6 +2026,7 @@ private: return 0; } + // DEPRECATED // get_entity_name(self) static int l_get_entity_name(lua_State *L) {