forked from mtcontrib/3d_armor
temporary workaround for #24
This commit is contained in:
parent
713b0c81d4
commit
3b97763fdc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user