mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Fix broken mapgen overrides in mcl_mapgen_core
This commit is contained in:
parent
f13aa521f6
commit
28a085ae98
1 changed files with 5 additions and 0 deletions
|
@ -1282,6 +1282,7 @@ minetest.register_on_generated(function(minp, maxp)
|
|||
lvm_used = true
|
||||
elseif mcl_util.is_in_void({x=x,y=y,z=z}) then
|
||||
setdata = c_void
|
||||
lvm_used = true
|
||||
-- Big lava seas by replacing air below a certain height
|
||||
elseif mcl_vars.mg_lava and data[p_pos] == c_air then
|
||||
if y <= mcl_vars.mg_lava_overworld_max and y >= mcl_vars.mg_overworld_min then
|
||||
|
@ -1294,6 +1295,7 @@ minetest.register_on_generated(function(minp, maxp)
|
|||
-- Water in the Nether? No way!
|
||||
elseif data[p_pos] == c_water and y <= mcl_vars.mg_nether_max and y >= mcl_vars.mg_nether_min then
|
||||
data[p_pos] = c_nether_lava
|
||||
lvm_used = true
|
||||
-- Realm barrier between the Overworld void and the End
|
||||
elseif y >= mcl_vars.mg_realm_barrier_overworld_end_min and y <= mcl_vars.mg_realm_barrier_overworld_end_max then
|
||||
data[p_pos] = c_realm_barrier
|
||||
|
@ -1303,11 +1305,14 @@ minetest.register_on_generated(function(minp, maxp)
|
|||
if y <= mcl_vars.mg_nether_max and y >= mcl_vars.mg_nether_min then
|
||||
if data[p_pos] == c_stone then
|
||||
data[p_pos] = c_netherrack
|
||||
lvm_used = true
|
||||
elseif data[p_pos] == c_sand or data[p_pos] == c_dirt then
|
||||
data[p_pos] = c_soul_sand
|
||||
lvm_used = true
|
||||
end
|
||||
elseif y <= mcl_vars.mg_end_max and y >= mcl_vars.mg_end_min and (data[p_pos] == c_stone or data[p_pos] == c_dirt or data[p_pos] == c_sand) then
|
||||
data[p_pos] = c_end_stone
|
||||
lvm_used = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue