mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-08-20 13:04:08 +02:00
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
|
end
|
||||||
-- DEPRECATED, use armor_groups instead
|
-- DEPRECATED, use armor_groups instead
|
||||||
if def.groups["armor_radiation"] and levels["radiation"] then
|
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
|
||||||
end
|
end
|
||||||
local item = stack:get_name()
|
local item = stack:get_name()
|
||||||
|
Loading…
Reference in New Issue
Block a user