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