diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-04-07 15:58:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 21:58:04 +0200 |
commit | 0b5b2b2633609f646a534d353a2c587af4be46fa (patch) | |
tree | 8c8d56ab26b173c57eb2c0cff319eeae2c8e6cab /src/script/lua_api | |
parent | 1348d9aaf834faa613bf3efe3a9d8fee758e85d0 (diff) | |
download | minetest-0b5b2b2633609f646a534d353a2c587af4be46fa.tar.gz minetest-0b5b2b2633609f646a534d353a2c587af4be46fa.tar.bz2 minetest-0b5b2b2633609f646a534d353a2c587af4be46fa.zip |
Disentangle map implementations (#12148)
Fixes violation of Liskov substitution principle
Fixes #12144
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_env.cpp | 2 | ||||
-rw-r--r-- | src/script/lua_api/l_vmanip.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp index 18ee3a521..54821df24 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -1386,7 +1386,7 @@ int ModApiEnvMod::l_transforming_liquid_add(lua_State *L) GET_ENV_PTR; v3s16 p0 = read_v3s16(L, 1); - env->getMap().transforming_liquid_add(p0); + env->getServerMap().transforming_liquid_add(p0); return 1; } diff --git a/src/script/lua_api/l_vmanip.cpp b/src/script/lua_api/l_vmanip.cpp index e040e545b..1fa080210 100644 --- a/src/script/lua_api/l_vmanip.cpp +++ b/src/script/lua_api/l_vmanip.cpp @@ -166,7 +166,7 @@ int LuaVoxelManip::l_update_liquids(lua_State *L) LuaVoxelManip *o = checkobject(L, 1); - Map *map = &(env->getMap()); + ServerMap *map = &(env->getServerMap()); const NodeDefManager *ndef = getServer(L)->getNodeDefManager(); MMVManip *vm = o->vm; |