mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 10:02:59 +00:00
Fix armor mod deleting player's immortal group
This commit is contained in:
parent
a5b4a261dc
commit
bab4529e4d
1 changed files with 4 additions and 1 deletions
|
@ -169,7 +169,10 @@ armor.set_player_armor = function(self, player)
|
||||||
if #textures > 0 then
|
if #textures > 0 then
|
||||||
armor_texture = table.concat(textures, "^")
|
armor_texture = table.concat(textures, "^")
|
||||||
end
|
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
|
if armor_level > 0 then
|
||||||
armor_groups.level = math.floor(armor_level / 20)
|
armor_groups.level = math.floor(armor_level / 20)
|
||||||
armor_groups.fleshy = 100 - armor_level
|
armor_groups.fleshy = 100 - armor_level
|
||||||
|
|
Loading…
Reference in a new issue