mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-22 20:43:43 +01:00
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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user