From 79a2e8186b9302a82135151e5ec924c6b71a92ea Mon Sep 17 00:00:00 2001 From: crabman77 <> Date: Thu, 19 Mar 2015 16:13:24 +0100 Subject: [PATCH] fix nether mapgen --- nether/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nether/init.lua b/nether/init.lua index bcc730d..465ceec 100644 --- a/nether/init.lua +++ b/nether/init.lua @@ -356,7 +356,7 @@ minetest.register_on_generated(function(minp, maxp, seed) --local perlin2 = minetest.get_perlin(133,3, 0.5, 10) --local perlin3 = minetest.get_perlin(112,3, 0.5, 5) - local side_length = maxp.x - minp.x - 1 -- maybe mistake here + local side_length = maxp.x - minp.x + 1 -- maybe mistake here local map_lengths_xyz = {x=side_length, y=side_length, z=side_length} local pmap1 = minetest.get_perlin_map(perlins[1], map_lengths_xyz):get2dMap_flat(minp) @@ -390,6 +390,7 @@ minetest.register_on_generated(function(minp, maxp, seed) local t = math.floor(test*3+0.5) + local h if test2 < 0 then h = math.floor(test2*3+0.5)-1 else