diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-01-02 17:33:03 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-02 17:33:03 +0200 |
commit | e82a76e43848eae556843709b66b6c8703354931 (patch) | |
tree | 0f7fd5d2775b8400b2e4ed40af299833f0392e76 | |
parent | ab57fbe4caa5a8d74ec08c7a7f3d2cb04faf9de0 (diff) | |
download | minetest-e82a76e43848eae556843709b66b6c8703354931.tar.gz minetest-e82a76e43848eae556843709b66b6c8703354931.tar.bz2 minetest-e82a76e43848eae556843709b66b6c8703354931.zip |
Mark ObjectRef::get_entity_name() deprecated
-rw-r--r-- | data/mods/default/init.lua | 2 | ||||
-rw-r--r-- | src/scriptapi.cpp | 1 |
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) { |