1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-06 08:56:27 +02:00

Towny - fix terrain

This commit is contained in:
Gerkiz
2024-02-18 17:58:55 +01:00
parent 504ae1786c
commit bcf8a0f353

View File

@@ -289,10 +289,9 @@ local function on_chunk_generated(event)
local bridges = get_perlin('cave_rivers', position, seed)
if bridges > 0.15 and bridges < 0.25 then
if cave_ponds > 0.1 and bridges < 0.20 then
surface.set_tiles({{name = 'water-shallow', position = position}}, true)
elseif cave_ponds > 0.1 and cave_ponds < 0.25 then
surface.set_tiles({{name = 'water-green', position = position}}, true)
surface.set_tiles({{name = 'water', position = position}}, true)
if cave_ponds > 0.1 and cave_ponds < 0.25 then
surface.set_tiles({{name = 'dirt-1', position = position}}, true)
end
if math_random(1, 48) == 1 then
surface.create_entity({name = 'fish', position = position, force = 'neutral'})