Skip to content

Commit

Permalink
call "set_player_armor" on respawn
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Dec 23, 2020
1 parent 33e9ac8 commit 724a3df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 3d_armor/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 724a3df

Please sign in to comment.