Skip to content

Commit 20917da

Browse files
authored
Fix armor radiation values were not not summed up (#139)
1 parent 7bd77a7 commit 20917da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3d_armor/api.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ armor.set_player_armor = function(self, player)
415415
end
416416
-- DEPRECATED, use armor_groups instead
417417
if def.groups["armor_radiation"] and levels["radiation"] then
418-
levels["radiation"] = def.groups["armor_radiation"]
418+
levels["radiation"] = levels["radiation"] + def.groups["armor_radiation"]
419419
end
420420
end
421421
local item = stack:get_name()

0 commit comments

Comments
 (0)