From 5642819ba5edb7da8ae68537121fbb2bfc5ec3f8 Mon Sep 17 00:00:00 2001 From: Sirrobzeroone <44497598+sirrobzeroone@users.noreply.github.com> Date: Thu, 24 Dec 2020 13:19:48 +1100 Subject: [PATCH] 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 --- shields/init.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/shields/init.lua b/shields/init.lua index 4def1c5..6c7ac5a 100644 --- a/shields/init.lua +++ b/shields/init.lua @@ -17,8 +17,6 @@ end if minetest.global_exists("armor") and armor.elements then table.insert(armor.elements, "shield") - local mult = armor.config.level_multiplier or 1 - armor.config.level_multiplier = mult * 0.9 end -- Regisiter Shields