call "set_player_armor" on respawn

This commit is contained in:
BuckarooBanzay 2020-12-23 15:40:44 +01:00
parent 33e9ac8e23
commit 724a3df50f

@ -389,6 +389,10 @@ if armor.config.drop == true or armor.config.destroy == true then
end) end)
end end
end) end)
else -- reset un-dropped armor and it's effects
minetest.register_on_respawnplayer(function(player)
armor:set_player_armor(player)
end)
end end
if armor.config.punch_damage == true then if armor.config.punch_damage == true then