Skip to content

Commit

Permalink
fix for #30
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sirrobzeroone authored and BuckarooBanzay committed Dec 26, 2020
1 parent 724a3df commit 5642819
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions shields/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5642819

Please sign in to comment.