mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-29 15:33:44 +01:00
fix for #30
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:
parent
724a3df50f
commit
5642819ba5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user