Skip to content

Commit 850cb17

Browse files
committed
temporary workaround for minetest-mods#24
* backport minetest-mods@3b97763 * it try to fix the problem of minetest-mods#24
1 parent a2c776e commit 850cb17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: 3d_armor/api.lua

+3
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ armor.punch = function(self, player, hitter, time_from_last_punch, tool_capabili
333333
local groupcaps = tool_capabilities.groupcaps or {}
334334
local uses = 0
335335
damage = false
336+
if next(groupcaps) == nil then
337+
damage = true
338+
end
336339
for group, caps in pairs(groupcaps) do
337340
local maxlevel = caps.maxlevel or 0
338341
local diff = maxlevel - level

0 commit comments

Comments
 (0)