diff options
author | sfan5 <sfan5@live.de> | 2020-04-10 22:06:24 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2020-04-11 13:12:51 +0200 |
commit | 054c5dfaa35dd79560a465ccc0ef214cb5f34c88 (patch) | |
tree | 7f9e2feefbee0708f3dc7371d3615767deba0048 /src/script/lua_api/l_object.cpp | |
parent | f105bc8dc2444d98a9cd74a2caa0013ce2e07008 (diff) | |
download | minetest-054c5dfaa35dd79560a465ccc0ef214cb5f34c88.tar.gz minetest-054c5dfaa35dd79560a465ccc0ef214cb5f34c88.tar.bz2 minetest-054c5dfaa35dd79560a465ccc0ef214cb5f34c88.zip |
scriptapi: Sort out ServerEnvironment / Environment distinction properly
The API implementation is shared between CSM and SSM.
Functions should retrieve a plain env when they do not
need any server-specific functions.
Diffstat (limited to 'src/script/lua_api/l_object.cpp')
-rw-r--r-- | src/script/lua_api/l_object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp index 23ed1ffe0..5cd978d73 100644 --- a/src/script/lua_api/l_object.cpp +++ b/src/script/lua_api/l_object.cpp @@ -533,7 +533,7 @@ int ObjectRef::l_set_local_animation(lua_State *L) // get_local_animation(self) int ObjectRef::l_get_local_animation(lua_State *L) { - NO_MAP_LOCK_REQUIRED + NO_MAP_LOCK_REQUIRED; ObjectRef *ref = checkobject(L, 1); RemotePlayer *player = getplayer(ref); if (player == NULL) |