Fix technic_worldgen incompatible with snow

see https://github.com/Splizard/minetest-mod-snow/issues/14
This commit is contained in:
asl97 2015-06-10 02:44:49 +08:00
parent 055ee23431
commit bfd0c023fa

View File

@ -119,7 +119,8 @@ minetest.register_ore({
-- Sulfur -- Sulfur
minetest.register_on_generated(function(minp, maxp, seed) minetest.register_on_generated(function(minp, maxp, seed)
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip") local vm = minetest.get_voxel_manip()
local emin, emax = vm:read_from_map(minp, maxp)
local a = VoxelArea:new{ local a = VoxelArea:new{
MinEdge = {x = emin.x, y = emin.y, z = emin.z}, MinEdge = {x = emin.x, y = emin.y, z = emin.z},
MaxEdge = {x = emax.x, y = emax.y, z = emax.z}, MaxEdge = {x = emax.x, y = emax.y, z = emax.z},