diff options
Diffstat (limited to 'worldedit')
-rw-r--r-- | worldedit/init.lua | 1 | ||||
-rw-r--r-- | worldedit/manipulations.lua | 11 |
2 files changed, 4 insertions, 8 deletions
diff --git a/worldedit/init.lua b/worldedit/init.lua index 343a1e4..0305c4d 100644 --- a/worldedit/init.lua +++ b/worldedit/init.lua @@ -36,7 +36,6 @@ load_module(path .. "/visualization.lua") load_module(path .. "/serialization.lua")
load_module(path .. "/code.lua")
load_module(path .. "/compatibility.lua")
-load_module(path .. "/wand.lua")
load_module(path .. "/cuboid.lua")
diff --git a/worldedit/manipulations.lua b/worldedit/manipulations.lua index cf95517..57c7a76 100644 --- a/worldedit/manipulations.lua +++ b/worldedit/manipulations.lua @@ -575,14 +575,11 @@ end function worldedit.fixlight(pos1, pos2)
local pos1, pos2 = worldedit.sort_pos(pos1, pos2)
- worldedit.keep_loaded(pos1, pos2)
+ local vmanip = minetest.get_voxel_manip(pos1, pos2)
+ vmanip:write_to_map()
+ vmanip:update_map() -- this updates the lighting
- local nodes = minetest.find_nodes_in_area(pos1, pos2, "air")
- local dig_node = minetest.dig_node
- for _, pos in ipairs(nodes) do
- dig_node(pos)
- end
- return #nodes
+ return worldedit.volume(pos1, pos2)
end
|