mirror of
https://github.com/HybridDog/nether-pack.git
synced 2025-01-11 10:20:24 +01:00
fix nether mapgen
This commit is contained in:
parent
7c75dafcdb
commit
79a2e8186b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user