fix nether mapgen

This commit is contained in:
crabman77 2015-03-19 16:13:24 +01:00 committed by HybridDog
parent 7c75dafcdb
commit 79a2e8186b
1 changed files with 2 additions and 1 deletions

View File

@ -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