Skip to content

Commit

Permalink
temporary workaround for #24
Browse files Browse the repository at this point in the history
  • Loading branch information
sirrobzeroone authored and BuckarooBanzay committed Dec 11, 2020
1 parent 713b0c8 commit 3b97763
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 @@ -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
Expand Down

0 comments on commit 3b97763

Please sign in to comment.