summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGael-de-Sailly <gael.chretien@akeonet.com>2015-05-10 21:03:46 +0200
committerGael-de-Sailly <gael.chretien@akeonet.com>2015-05-10 21:03:46 +0200
commit074029a586d69cb87f570f1085ed97413f8ae118 (patch)
tree3bd4c6f31d3c6cb25821f7023711d2961d31d34c
parent12a471f760d238c4936ef41707836e9ed9f10d69 (diff)
Cleaned code
It was useless to run vm:calc_lighting() : it's not supported by this type of voxelmanip, and included in vm:update_map()
-rw-r--r--init.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 680fd6f..5ec0549 100644
--- a/init.lua
+++ b/init.lua
@@ -13,9 +13,7 @@ minetest.register_chatcommand("mapfix", {
local maxp = vector.round(vector.add(pos, size + 0.5))
-- use the voxelmanip to fix problems
- local vm = minetest.get_voxel_manip()
- vm:read_from_map(minp, maxp)
- vm:calc_lighting()
+ local vm = minetest.get_voxel_manip(minp, maxp)
vm:update_liquids()
vm:write_to_map()
vm:update_map()