Update init.lua

forgot to add pBLOCKS
This commit is contained in:
srifqi 2014-07-18 15:50:22 +07:00
parent 0b865f6d39
commit 0d2bef2bfd

View File

@ -22,11 +22,12 @@ minetest.register_node("superflat:bedrock", {
sounds = default.node_sound_stone_defaults()
})
local pBLOCKS = sflat.parsetext(sflat.BLOCKS)
minetest.register_on_generated(function(minp, maxp, seed)
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
local area = VoxelArea:new{MinEdge=emin, MaxEdge=emax}
local data = vm:get_data()
local pBLOCKS = sflat.parsetext(sflat.BLOCKS)
if minp.y > sflat.Y_ORIGIN + #pBLOCKS then
return
end