summaryrefslogtreecommitdiff
path: root/technic_worldgen
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-03 09:31:05 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-03 09:31:05 -0400
commit2fa93b219eadfcdcf8f1d472aad046fc62d5b99d (patch)
treecff2e96e78cd89aa965976553d2ff8989b5a02b5 /technic_worldgen
parent76594f4bd5f825eaf1245965e2c0933bec47320d (diff)
downloaddreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar
dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar.gz
dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar.bz2
dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.tar.xz
dreambuilder_modpack-2fa93b219eadfcdcf8f1d472aad046fc62d5b99d.zip
update castles, cottages, digistuff, gloopblocks, locks,
maptools, mesecons, pipeworks, technic, unified inventory, unified dyes, and xban2
Diffstat (limited to 'technic_worldgen')
-rw-r--r--technic_worldgen/oregen.lua17
1 files changed, 10 insertions, 7 deletions
diff --git a/technic_worldgen/oregen.lua b/technic_worldgen/oregen.lua
index 8e7af91..16a3b8d 100644
--- a/technic_worldgen/oregen.lua
+++ b/technic_worldgen/oregen.lua
@@ -141,17 +141,20 @@ minetest.register_on_generated(function(minp, maxp, seed)
for y = minp.y + math.floor(grid_size / 2), maxp.y, grid_size do
for z = minp.z + math.floor(grid_size / 2), maxp.z, grid_size do
local c = data[a:index(x, y, z)]
- if (c == c_lava or c == c_lava_flowing) and sulfur_noise:get3d({x = x, y = z, z = z}) >= 0.4 then
- for xx = math.max(minp.x, x - grid_size), math.min(maxp.x, x + grid_size) do
- for yy = math.max(minp.y, y - grid_size), math.min(maxp.y, y + grid_size) do
- for zz = math.max(minp.z, z - grid_size), math.min(maxp.z, z + grid_size) do
- local i = a:index(xx, yy, zz)
+ if (c == c_lava or c == c_lava_flowing)
+ and sulfur_noise:get3d({x = x, y = z, z = z}) >= 0.4 then
+ for i in a:iter(
+ math.max(minp.x, x - grid_size),
+ math.max(minp.y, y - grid_size),
+ math.max(minp.z, z - grid_size),
+ math.min(maxp.x, x + grid_size),
+ math.min(maxp.y, y + grid_size),
+ math.min(maxp.z, z + grid_size)
+ ) do
if data[i] == c_stone and pr:next(1, 10) <= 7 then
data[i] = c_sulfur
end
end
- end
- end
end
end
end