From 724a3df50f3a5c47f2704d597e4f5def413f8276 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Wed, 23 Dec 2020 15:40:44 +0100 Subject: [PATCH] call "set_player_armor" on respawn --- 3d_armor/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3d_armor/init.lua b/3d_armor/init.lua index ec91680..c727055 100644 --- a/3d_armor/init.lua +++ b/3d_armor/init.lua @@ -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