Fix campfires not setting anything on fire

This commit is contained in:
cora 2024-12-24 06:52:14 +01:00 committed by cora
parent abf8dd0eb3
commit d711c7dc2b

View File

@ -255,10 +255,10 @@ minetest.register_globalstep(function(dtime)
etime = 0
for pl in mcl_util.connected_players() do
local armor_feet = pl:get_inventory():get_stack("armor", 5)
if pl and pl:get_player_control().sneak
or mcl_enchanting.has_enchantment(armor_feet, "frost_walker")
or mcl_potions.has_effect(pl, "fire_resistance") then
return
if not pl:get_player_control().sneak
and not mcl_enchanting.has_enchantment(armor_feet, "frost_walker")
and not mcl_potions.has_effect(pl, "fire_resistance") then
burn_in_campfire(pl)
end
end
for _,ent in pairs(minetest.luaentities) do