some code updates

This commit is contained in:
HybridDog
2015-05-23 19:53:30 +02:00
parent 6bbc4d359e
commit c0b40b5cbf
7 changed files with 193 additions and 165 deletions

View File

@ -139,7 +139,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
local ground_y = nil
for y = maxp.y, minp.y, -1 do
local nodid = data[area:index(x, y, z)]
if nodid ~= c_air and nodid ~= c_ignore then
if nodid ~= c_air
and nodid ~= c_ignore then
ground_y = y
break
end