diff --git a/mods/ITEMS/mcl_campfires/api.lua b/mods/ITEMS/mcl_campfires/api.lua index 2466bde7b..c58262e82 100644 --- a/mods/ITEMS/mcl_campfires/api.lua +++ b/mods/ITEMS/mcl_campfires/api.lua @@ -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