Prevent server-killing sand falls.
This commit is contained in:
parent
d7c16bbae9
commit
0edc007f47
1 changed files with 6 additions and 1 deletions
|
@ -366,7 +366,7 @@ local function generate(p_minp, p_maxp, seed)
|
||||||
biome_val = biome_val / max(1, log(y - fluid_compression))
|
biome_val = biome_val / max(1, log(y - fluid_compression))
|
||||||
end
|
end
|
||||||
-------------------
|
-------------------
|
||||||
--biome_val = 0.55
|
--biome_val = 0.45
|
||||||
-------------------
|
-------------------
|
||||||
if biome_val < -0.65 then
|
if biome_val < -0.65 then
|
||||||
stone_type = node["default:ice"]
|
stone_type = node["default:ice"]
|
||||||
|
@ -442,6 +442,11 @@ local function generate(p_minp, p_maxp, seed)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not air_above and stone_type == node["default:sand"] then
|
||||||
|
data[ivm] = node["default:sandstone"]
|
||||||
|
break
|
||||||
|
end
|
||||||
|
|
||||||
if data[ivm] == node["default:stone"] and air_below then
|
if data[ivm] == node["default:stone"] and air_below then
|
||||||
if stone_type == node["fun_caves:stone_with_salt"] and rand(radioactive_ratio) == 1 then
|
if stone_type == node["fun_caves:stone_with_salt"] and rand(radioactive_ratio) == 1 then
|
||||||
data[ivm] = node["fun_caves:radioactive_ore"]
|
data[ivm] = node["fun_caves:radioactive_ore"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue