Commit 074029a5 authored by Gael-de-Sailly's avatar Gael-de-Sailly

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()
parent 12a471f7
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment