Skip to content

Commit

Permalink
temporary workaround for minetest-mods#24
Browse files Browse the repository at this point in the history
* backport minetest-mods@3b97763
* it try to fix the problem of minetest-mods#24
  • Loading branch information
mckaygerhard committed Oct 28, 2021
1 parent a2c776e commit 850cb17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 3d_armor/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ armor.punch = function(self, player, hitter, time_from_last_punch, tool_capabili
local groupcaps = tool_capabilities.groupcaps or {}
local uses = 0
damage = false
if next(groupcaps) == nil then
damage = true
end
for group, caps in pairs(groupcaps) do
local maxlevel = caps.maxlevel or 0
local diff = maxlevel - level
Expand Down

0 comments on commit 850cb17

Please sign in to comment.