From bfd0c023fa48258cccca1dc62d71ffc08a18b106 Mon Sep 17 00:00:00 2001 From: asl97 Date: Wed, 10 Jun 2015 02:44:49 +0800 Subject: [PATCH] Fix technic_worldgen incompatible with snow see https://github.com/Splizard/minetest-mod-snow/issues/14 --- technic_worldgen/oregen.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/technic_worldgen/oregen.lua b/technic_worldgen/oregen.lua index 795f0ec..064e259 100644 --- a/technic_worldgen/oregen.lua +++ b/technic_worldgen/oregen.lua @@ -119,7 +119,8 @@ minetest.register_ore({ -- Sulfur 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{ MinEdge = {x = emin.x, y = emin.y, z = emin.z}, MaxEdge = {x = emax.x, y = emax.y, z = emax.z},