call "set_player_armor" on respawn

This commit is contained in:
BuckarooBanzay 2020-12-23 15:40:44 +01:00
parent 33e9ac8e23
commit 724a3df50f
1 changed files with 4 additions and 0 deletions

View File

@ -389,6 +389,10 @@ if armor.config.drop == true or armor.config.destroy == true then
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
if armor.config.punch_damage == true then