From: kwolekr Date: Sat, 6 Jul 2013 19:12:40 +0000 (-0400) Subject: LuaVoxelManip: Allow liquid updates in non-mapgen VoxelManip objects X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=06266abd6e1326202eb221ee4a6e1be892c2fbf2;p=zefram%2Fminetest%2Fminetest_engine.git LuaVoxelManip: Allow liquid updates in non-mapgen VoxelManip objects --- diff --git a/src/script/lua_api/l_vmanip.cpp b/src/script/lua_api/l_vmanip.cpp index 50a48e89..19568257 100644 --- a/src/script/lua_api/l_vmanip.cpp +++ b/src/script/lua_api/l_vmanip.cpp @@ -111,8 +111,6 @@ int LuaVoxelManip::l_write_to_map(lua_State *L) int LuaVoxelManip::l_update_liquids(lua_State *L) { LuaVoxelManip *o = checkobject(L, 1); - if (!o->is_mapgen_vm) - return 0; INodeDefManager *ndef = STACK_TO_SERVER(L)->getNodeDefManager(); Map *map = &(get_scriptapi(L)->getEnv()->getMap());