Skip to content

Commit

Permalink
Fix armor radiation values were not not summed up
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 committed Mar 15, 2024
1 parent 7fc313f commit dd0e795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3d_armor/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dd0e795

Please sign in to comment.