1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-12-26 02:30:39 +01:00
BuckarooBanzay 2019-12-17 14:36:05 +01:00
commit fccd4d8b15

View File

@ -279,6 +279,11 @@ armor.set_player_armor = function(self, player)
if use_armor_monoid then
armor_monoid.monoid:add_change(player, change, "3d_armor:armor")
else
-- Preserve immortal group (damage disabled for player)
local immortal = player:get_armor_groups().immortal
if immortal and immortal ~= 0 then
groups.immortal = 1
end
player:set_armor_groups(groups)
end
if use_player_monoids then