forked from mtcontrib/3d_armor
call "set_player_armor" on respawn
This commit is contained in:
parent
33e9ac8e23
commit
724a3df50f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user