Fix armor radiation values were not not summed up (#139)

This commit is contained in:
Niklp 2024-03-22 22:35:43 +01:00 committed by GitHub
parent 7bd77a7b80
commit 20917da061
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -415,7 +415,7 @@ armor.set_player_armor = function(self, player)
end
-- DEPRECATED, use armor_groups instead
if def.groups["armor_radiation"] and levels["radiation"] then
levels["radiation"] = def.groups["armor_radiation"]
levels["radiation"] = levels["radiation"] + def.groups["armor_radiation"]
end
end
local item = stack:get_name()