forked from VoxeLibre/VoxeLibre
Activate liquid flow again
This commit is contained in:
parent
757e727b4f
commit
fbf49a8794
|
@ -1252,7 +1252,6 @@ minetest.register_on_generated(function(minp, maxp)
|
||||||
local data = vm:get_data(lvm_buffer)
|
local data = vm:get_data(lvm_buffer)
|
||||||
local area = VoxelArea:new({MinEdge=emin, MaxEdge=emax})
|
local area = VoxelArea:new({MinEdge=emin, MaxEdge=emax})
|
||||||
local lvm_used = false
|
local lvm_used = false
|
||||||
local liquids_used = false
|
|
||||||
|
|
||||||
-- Generate bedrock and lava layers
|
-- Generate bedrock and lava layers
|
||||||
if minp.y <= GEN_MAX then
|
if minp.y <= GEN_MAX then
|
||||||
|
@ -1320,18 +1319,15 @@ minetest.register_on_generated(function(minp, maxp)
|
||||||
if y <= mcl_vars.mg_lava_overworld_max and y >= mcl_vars.mg_overworld_min then
|
if y <= mcl_vars.mg_lava_overworld_max and y >= mcl_vars.mg_overworld_min then
|
||||||
data[p_pos] = c_lava
|
data[p_pos] = c_lava
|
||||||
lvm_used = true
|
lvm_used = true
|
||||||
liquids_used = true
|
|
||||||
elseif y <= mcl_vars.mg_lava_nether_max and y >= mcl_vars.mg_nether_min then
|
elseif y <= mcl_vars.mg_lava_nether_max and y >= mcl_vars.mg_nether_min then
|
||||||
data[p_pos] = c_nether_lava
|
data[p_pos] = c_nether_lava
|
||||||
lvm_used = true
|
lvm_used = true
|
||||||
liquids_used = true
|
|
||||||
end
|
end
|
||||||
-- Water in the Nether or End? No way!
|
-- Water in the Nether or End? No way!
|
||||||
elseif data[p_pos] == c_water then
|
elseif data[p_pos] == c_water then
|
||||||
if y <= mcl_vars.mg_nether_max and y >= mcl_vars.mg_nether_min then
|
if y <= mcl_vars.mg_nether_max and y >= mcl_vars.mg_nether_min then
|
||||||
data[p_pos] = c_nether_lava
|
data[p_pos] = c_nether_lava
|
||||||
lvm_used = true
|
lvm_used = true
|
||||||
liquids_used = true
|
|
||||||
elseif y <= mcl_vars.mg_end_min + 104 and y >= mcl_vars.mg_end_min + 40 then
|
elseif y <= mcl_vars.mg_end_min + 104 and y >= mcl_vars.mg_end_min + 40 then
|
||||||
data[p_pos] = c_end_stone
|
data[p_pos] = c_end_stone
|
||||||
lvm_used = true
|
lvm_used = true
|
||||||
|
@ -1394,9 +1390,7 @@ minetest.register_on_generated(function(minp, maxp)
|
||||||
if lvm_used then
|
if lvm_used then
|
||||||
vm:set_data(data)
|
vm:set_data(data)
|
||||||
vm:calc_lighting()
|
vm:calc_lighting()
|
||||||
if liquids_used then
|
vm:update_liquids()
|
||||||
vm:update_liquids()
|
|
||||||
end
|
|
||||||
vm:write_to_map()
|
vm:write_to_map()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue