mirror of
https://github.com/minetest-mods/magma_conduits.git
synced 2025-01-06 12:37:33 +01:00
extinct volcano lava depth wasn't working right either
This commit is contained in:
parent
790dc924ec
commit
43444c12e7
@ -109,7 +109,7 @@ local get_volcano = function(pos)
|
|||||||
local depth_peak = math.random(depth_minpeak, depth_maxpeak)
|
local depth_peak = math.random(depth_minpeak, depth_maxpeak)
|
||||||
local depth_lava
|
local depth_lava
|
||||||
if state < state_extinct then
|
if state < state_extinct then
|
||||||
depth_lava = depth_base - math.random(1, math.abs(depth_root)) -- extinct, put the lava somewhere deep.
|
depth_lava = - math.random(1, math.abs(depth_root)) -- extinct, put the lava somewhere deep.
|
||||||
elseif state < state_dormant then
|
elseif state < state_dormant then
|
||||||
depth_lava = depth_peak - math.random(5, 50) -- dormant
|
depth_lava = depth_peak - math.random(5, 50) -- dormant
|
||||||
else
|
else
|
||||||
@ -246,13 +246,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
local pipestuff
|
local pipestuff
|
||||||
local liningstuff
|
local liningstuff
|
||||||
if y < depth_lava + math.random() * 1.1 then
|
if y < depth_lava + math.random() * 1.1 then
|
||||||
if state < state_extinct then
|
pipestuff = c_lava
|
||||||
pipestuff = c_plug -- extinct volcano
|
liningstuff = c_hot_lining
|
||||||
liningstuff = c_lining
|
|
||||||
else
|
|
||||||
pipestuff = c_lava
|
|
||||||
liningstuff = c_hot_lining
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
if state < state_dormant then
|
if state < state_dormant then
|
||||||
pipestuff = c_plug -- dormant volcano
|
pipestuff = c_plug -- dormant volcano
|
||||||
|
Loading…
Reference in New Issue
Block a user