1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-12-27 03:00:40 +01:00
2 line update so that shields when used no longer affects the base armor.config.level_multiplier and hard sets this to 0.9 and overriding whatever value maybe set under the UI for this seeting.

Tested in combination with #34 but no issues detected
This commit is contained in:
Sirrobzeroone 2020-12-24 13:19:48 +11:00 committed by Buckaroo Banzai
parent 724a3df50f
commit 5642819ba5

View File

@ -17,8 +17,6 @@ end
if minetest.global_exists("armor") and armor.elements then if minetest.global_exists("armor") and armor.elements then
table.insert(armor.elements, "shield") table.insert(armor.elements, "shield")
local mult = armor.config.level_multiplier or 1
armor.config.level_multiplier = mult * 0.9
end end
-- Regisiter Shields -- Regisiter Shields