forked from mtcontrib/3d_armor
Fix armor radiation values were not not summed up (#139)
This commit is contained in:
parent
7bd77a7b80
commit
20917da061
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user