From bab4529e4dbcd130bcd516b82e13370dd807d170 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 17 Dec 2019 01:44:11 +0100 Subject: [PATCH] Fix armor mod deleting player's immortal group --- mods/ITEMS/minetest-3d_armor/3d_armor/armor.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/minetest-3d_armor/3d_armor/armor.lua b/mods/ITEMS/minetest-3d_armor/3d_armor/armor.lua index c4de2c5223..a1ea336908 100644 --- a/mods/ITEMS/minetest-3d_armor/3d_armor/armor.lua +++ b/mods/ITEMS/minetest-3d_armor/3d_armor/armor.lua @@ -169,7 +169,10 @@ armor.set_player_armor = function(self, player) if #textures > 0 then armor_texture = table.concat(textures, "^") end - local armor_groups = {fleshy=100} + local armor_groups = player:get_armor_groups() + armor_groups.fleshy = 100 + armor_groups.level = nil + armor_groups.radiation = nil if armor_level > 0 then armor_groups.level = math.floor(armor_level / 20) armor_groups.fleshy = 100 - armor_level