minetest-mods / 3d_armor

Visible player armor & wielded items for minetest
Other
17 stars 39 forks source link

radiation values do not add #136

Closed programmerjake closed 7 months ago

programmerjake commented 8 months ago

when using with armor from https://github.com/mt-mods/technic_armor, the putting different pieces of lead armor on in some cases make the radiation value decrease by putting on more armor instead of increasing as expected.

this looks to be caused by: https://github.com/minetest-mods/3d_armor/blob/7fc313f911a71716aae90a60d0c862430bd4fa1e/3d_armor/api.lua#L416-L419 which incorrectly replaces the radiation value instead of adding.