diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-31 19:39:31 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-31 19:39:31 -0500 |
commit | 39f5cba27eef35877c91291f518974f34130fcb6 (patch) | |
tree | 117a9d1b7d4ee5f78f73e1216e982c366ed9ecc6 /worldedit | |
parent | 2922421f4a88e56a0a1c819f62bf2bc287835388 (diff) | |
download | dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.gz dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.bz2 dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.tar.xz dreambuilder_modpack-39f5cba27eef35877c91291f518974f34130fcb6.zip |
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
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
|