mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Add proper lua api deprecated handling
This commit is contained in:
@@ -659,6 +659,7 @@ int ObjectRef::l_get_entity_name(lua_State *L)
|
||||
NO_MAP_LOCK_REQUIRED;
|
||||
ObjectRef *ref = checkobject(L, 1);
|
||||
LuaEntitySAO *co = getluaobject(ref);
|
||||
log_deprecated(L,"Deprecated call to \"get_entity_name");
|
||||
if(co == NULL) return 0;
|
||||
// Do it
|
||||
std::string name = co->getName();
|
||||
|
Reference in New Issue
Block a user