forked from LizzyFleckenstein03/Memeclone
[mcl_mapgen_core] Fix Nether generation chain reaction
This commit is contained in:
parent
2e3a5efaf9
commit
80d845adb6
|
@ -466,7 +466,6 @@ local function ecb_scan_area_2(blockpos, action, calls_remaining, param)
|
||||||
local nodes2 = find_nodes_in_area(node1, node2, {"air"})
|
local nodes2 = find_nodes_in_area(node1, node2, {"air"})
|
||||||
if nodes2 then
|
if nodes2 then
|
||||||
local nc2 = #nodes2
|
local nc2 = #nodes2
|
||||||
log("action", "[mcl_portals] nc2=" .. tostring(nc2))
|
|
||||||
if nc2 == 27 and not is_area_protected(node, node2, name) then
|
if nc2 == 27 and not is_area_protected(node, node2, name) then
|
||||||
local distance0 = dist(pos, node)
|
local distance0 = dist(pos, node)
|
||||||
if distance0 < 2 then
|
if distance0 < 2 then
|
||||||
|
|
|
@ -2112,16 +2112,10 @@ local function basic(vm, data, data2, emin, emax, area, minp, maxp, blockseed)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
minetest.emerge_area(emin, emax, function(blockpos, action, calls_remaining, param)
|
local nodes = minetest.find_nodes_in_area(emin, emax, {"group:water"})
|
||||||
if calls_remaining > 0 then return end
|
for _, n in pairs(nodes) do
|
||||||
-- local nodes = minetest.find_nodes_in_area(param.minp, param.maxp, {"mcl_core:water_source"})
|
data[area:index(n.x, n.y, n.z)] = c_nether_lava
|
||||||
local nodes = minetest.find_nodes_in_area(param.minp, param.maxp, {"group:water"})
|
end
|
||||||
local sn=(mcl_observers and mcl_observers.swap_node) or minetest.swap_node
|
|
||||||
local l = {name="mcl_nether:nether_lava_source"}
|
|
||||||
for _, n in pairs(nodes) do
|
|
||||||
sn(n, l)
|
|
||||||
end
|
|
||||||
end, {minp=vector.new(emin), maxp=vector.new(emax)})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- End block fixes:
|
-- End block fixes:
|
||||||
|
|
Loading…
Reference in New Issue