mirror of
https://github.com/minetest-mods/mapfix.git
synced 2024-11-14 14:20:23 +01:00
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()
This commit is contained in:
parent
12a471f760
commit
074029a586
4
init.lua
4
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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user