mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-22 20:43:43 +01:00
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