Fix double nodes not being properly removed

master
cora 2022-01-16 12:26:50 +01:00 committed by Nils Dagsson Moskopp
parent 02fa2c9e07
commit 1b89c15193
No known key found for this signature in database
GPG Key ID: A3BC671C35191080
1 changed files with 4 additions and 4 deletions

View File

@ -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