2013-03-24 11:44:44 -04:00
|
|
|
function OnChunkGenerating(World, ChunkX, ChunkZ, ChunkDesc)
|
2013-06-30 15:14:22 -04:00
|
|
|
if (LimitWorld == true) then
|
|
|
|
if not LimitWorldsCuboid[World:GetName()]:IsInside( Vector3i(ChunkX, 128, ChunkZ) ) then
|
|
|
|
FillBlocks(ChunkDesc)
|
2013-03-24 11:44:44 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-06-30 15:14:22 -04:00
|
|
|
function FillBlocks(ChunkDesc)
|
2013-03-24 11:44:44 -04:00
|
|
|
ChunkDesc:FillBlocks(0,0)
|
|
|
|
ChunkDesc:SetUseDefaultBiomes(false)
|
|
|
|
ChunkDesc:SetUseDefaultHeight(false)
|
|
|
|
ChunkDesc:SetUseDefaultComposition(false)
|
|
|
|
ChunkDesc:SetUseDefaultStructures(false)
|
|
|
|
ChunkDesc:SetUseDefaultFinish(false)
|
|
|
|
end
|