LuaVoxelManip: Allow liquid updates in non-mapgen VoxelManip objects
authorkwolekr <kwolekr@minetest.net>
Sat, 6 Jul 2013 19:12:40 +0000 (15:12 -0400)
committerkwolekr <kwolekr@minetest.net>
Sat, 6 Jul 2013 19:12:40 +0000 (15:12 -0400)
src/script/lua_api/l_vmanip.cpp

index 50a48e89b6d4b915f173b97d4d75ddd6f7623028..195682579f7fa64ca5103096962da1ae314029ee 100644 (file)
@@ -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());