From e95ab769311afd53461836226850e606b20a81be Mon Sep 17 00:00:00 2001 From: Novatux Date: Sun, 27 Oct 2013 10:18:38 +0100 Subject: [PATCH] Fix crashes --- init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 2cd3e24..4e324b8 100644 --- a/init.lua +++ b/init.lua @@ -629,8 +629,8 @@ minetest.register_on_generated(function(minp, maxp, seed) local va = VoxelArea:new{MinEdge=minp, MaxEdge=maxp} - for _, ore in iapairs(mg.registered_ores) do - generate_vein(ore.c_ore, ore.c_wherein, minp, maxp, ore.seed, ore, data, a, va) + for _, ore in ipairs(mg.registered_ores) do + generate_vein(ore.c_ore, ore.c_wherein, minp, maxp, ore.seeddiff, ore, data, a, va) end to_add = generate_village(vx, vz, vs, vh, minp, maxp, data, a, village_noise, villages_to_grow) @@ -687,7 +687,7 @@ end mg.register_ore({ name = "air", - seed = 1234, + seeddiff = 1234, maxhdistance = 70, maxvdistance = 70, maxheight = -3, @@ -710,7 +710,7 @@ mg.register_ore({ mg.register_ore({ name = "default:clay", wherein = "default:dirt", - seed = 6, + seeddiff = 6, maxvdistance = 10.5, maxheight = 0, minheight = -50,