aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/mods/default/init.lua2
-rw-r--r--src/scriptapi.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 073483d4e..8de651efa 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 dbbaf3dc9..35b597337 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)
{