Mapgen: prevent falling on new game

master
Casimir 2015-11-28 11:08:25 +01:00
parent 17418ca498
commit 1c8917025c
1 changed files with 7 additions and 7 deletions

View File

@ -11,15 +11,15 @@ minetest.register_on_generated(function(minp, maxp, seed)
local c_startline = minetest.get_content_id("levelnodes:startline")
for z = minp.z, maxp.z do
for y = minp.y, maxp.y do
for x = minp.x, maxp.x do
local pos = area:index(x, y, z)
if y % 50 == 0 and x < 3 and x > 0 and z < 3 and z > 0 then
data[pos] = c_startline
end
end
for y = minp.y, maxp.y do
for x = minp.x, maxp.x do
local pos = area:index(x, y, z)
if (y+1) % 50 == 0 and x < 2 and x > -2 and z < 2 and z > -2 then
data[pos] = c_startline
end
end
end
end
vm:set_data(data)
vm:set_lighting({day=0, night=0})