From 3b97763fdc964581e7989cbf73388ca7918b9bcd Mon Sep 17 00:00:00 2001 From: Sirrobzeroone <44497598+sirrobzeroone@users.noreply.github.com> Date: Fri, 11 Dec 2020 10:23:05 +0100 Subject: [PATCH] temporary workaround for #24 --- 3d_armor/api.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/3d_armor/api.lua b/3d_armor/api.lua index 34f0bc6..1b10a17 100644 --- a/3d_armor/api.lua +++ b/3d_armor/api.lua @@ -356,6 +356,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