Sneaking does not prevent campfire from setting players on fire
This commit is contained in:
parent
d711c7dc2b
commit
70b729e78a
@ -255,8 +255,7 @@ 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 not pl:get_player_control().sneak
|
||||
and not mcl_enchanting.has_enchantment(armor_feet, "frost_walker")
|
||||
if not mcl_enchanting.has_enchantment(armor_feet, "frost_walker")
|
||||
and not mcl_potions.has_effect(pl, "fire_resistance") then
|
||||
burn_in_campfire(pl)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user