mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-18 07:15:07 -05:00
LuaVoxelManip: Allow liquid updates in non-mapgen VoxelManip objects
This commit is contained in:
parent
55ecde665d
commit
06266abd6e
@ -111,8 +111,6 @@ int LuaVoxelManip::l_write_to_map(lua_State *L)
|
|||||||
int LuaVoxelManip::l_update_liquids(lua_State *L)
|
int LuaVoxelManip::l_update_liquids(lua_State *L)
|
||||||
{
|
{
|
||||||
LuaVoxelManip *o = checkobject(L, 1);
|
LuaVoxelManip *o = checkobject(L, 1);
|
||||||
if (!o->is_mapgen_vm)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
INodeDefManager *ndef = STACK_TO_SERVER(L)->getNodeDefManager();
|
INodeDefManager *ndef = STACK_TO_SERVER(L)->getNodeDefManager();
|
||||||
Map *map = &(get_scriptapi(L)->getEnv()->getMap());
|
Map *map = &(get_scriptapi(L)->getEnv()->getMap());
|
||||||
|
Loading…
Reference in New Issue
Block a user