mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Disentangle map implementations (#12148)
Fixes violation of Liskov substitution principle Fixes #12144
This commit is contained in:
parent
1348d9aaf8
commit
0b5b2b2633
6 changed files with 57 additions and 57 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue