Only check for fire damage if valid delta time

This commit is contained in:
stujones11 2015-05-15 18:39:32 +01:00
parent 4eabd8512a
commit 734e01e847

View File

@ -233,7 +233,7 @@ armor.update_armor = function(self, player, dtime)
return
end
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
local node_head = minetest.get_node(pos).name
pos.y = pos.y - 1.2 -- feet level