forked from mtcontrib/3d_armor
Only check for fire damage if valid delta time
This commit is contained in:
parent
4eabd8512a
commit
734e01e847
@ -233,7 +233,7 @@ armor.update_armor = function(self, player, dtime)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
local hp = player:get_hp() or 0
|
local hp = player:get_hp() or 0
|
||||||
if ARMOR_FIRE_PROTECT == true then
|
if ARMOR_FIRE_PROTECT == true and dtime then
|
||||||
pos.y = pos.y + 1.4 -- head level
|
pos.y = pos.y + 1.4 -- head level
|
||||||
local node_head = minetest.get_node(pos).name
|
local node_head = minetest.get_node(pos).name
|
||||||
pos.y = pos.y - 1.2 -- feet level
|
pos.y = pos.y - 1.2 -- feet level
|
||||||
|
Loading…
Reference in New Issue
Block a user