forked from Mineclonia/Mineclonia
Fix double nodes not being properly removed
This commit is contained in:
parent
02fa2c9e07
commit
1b89c15193
|
@ -123,7 +123,7 @@ minetest.register_node("mcl_fire:fire", {
|
|||
|
||||
local dim = mcl_worlds.pos_to_dimension(bpos)
|
||||
if under == "mcl_nether:magma" or under == "mcl_nether:netherrack" or (under == "mcl_core:bedrock" and dim == "end") then
|
||||
minetest.swap_node(pos, {name = "mcl_fire:eternal_fire"})
|
||||
spawn_fire(pos)
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mcl_portals") then
|
||||
|
@ -386,7 +386,7 @@ else -- Fire enabled
|
|||
action = function(pos)
|
||||
local p = get_ignitable(pos)
|
||||
if p then
|
||||
minetest.set_node(p, {name = "mcl_fire:fire"})
|
||||
spawn_fire(p)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
@ -402,7 +402,7 @@ else -- Fire enabled
|
|||
action = function(pos)
|
||||
local p=get_ignitable_by_lava(pos)
|
||||
if p then
|
||||
minetest.set_node(p, {name = "mcl_fire:fire"})
|
||||
spawn_fire(p)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
@ -428,7 +428,7 @@ else -- Fire enabled
|
|||
if def and def._on_burn then
|
||||
def._on_burn(p)
|
||||
elseif fgroup ~= -1 then
|
||||
minetest.swap_node(p, {name = "mcl_fire:fire"})
|
||||
spawn_fire(p)
|
||||
fire_timer(p)
|
||||
minetest.check_for_falling(p)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue