forked from VoxeLibre/VoxeLibre
Fix broken mapgen overrides in mcl_mapgen_core
This commit is contained in:
parent
f13aa521f6
commit
28a085ae98
|
@ -1282,6 +1282,7 @@ minetest.register_on_generated(function(minp, maxp)
|
||||||
lvm_used = true
|
lvm_used = true
|
||||||
elseif mcl_util.is_in_void({x=x,y=y,z=z}) then
|
elseif mcl_util.is_in_void({x=x,y=y,z=z}) then
|
||||||
setdata = c_void
|
setdata = c_void
|
||||||
|
lvm_used = true
|
||||||
-- Big lava seas by replacing air below a certain height
|
-- Big lava seas by replacing air below a certain height
|
||||||
elseif mcl_vars.mg_lava and data[p_pos] == c_air then
|
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
|
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!
|
-- 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
|
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
|
data[p_pos] = c_nether_lava
|
||||||
|
lvm_used = true
|
||||||
-- Realm barrier between the Overworld void and the End
|
-- 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
|
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
|
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 y <= mcl_vars.mg_nether_max and y >= mcl_vars.mg_nether_min then
|
||||||
if data[p_pos] == c_stone then
|
if data[p_pos] == c_stone then
|
||||||
data[p_pos] = c_netherrack
|
data[p_pos] = c_netherrack
|
||||||
|
lvm_used = true
|
||||||
elseif data[p_pos] == c_sand or data[p_pos] == c_dirt then
|
elseif data[p_pos] == c_sand or data[p_pos] == c_dirt then
|
||||||
data[p_pos] = c_soul_sand
|
data[p_pos] = c_soul_sand
|
||||||
|
lvm_used = true
|
||||||
end
|
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
|
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
|
data[p_pos] = c_end_stone
|
||||||
|
lvm_used = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue