mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-26 14:23:45 +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 groupcaps = tool_capabilities.groupcaps or {}
|
||||||
local uses = 0
|
local uses = 0
|
||||||
damage = false
|
damage = false
|
||||||
|
if next(groupcaps) == nil then
|
||||||
|
damage = true
|
||||||
|
end
|
||||||
for group, caps in pairs(groupcaps) do
|
for group, caps in pairs(groupcaps) do
|
||||||
local maxlevel = caps.maxlevel or 0
|
local maxlevel = caps.maxlevel or 0
|
||||||
local diff = maxlevel - level
|
local diff = maxlevel - level
|
||||||
|
Loading…
Reference in New Issue
Block a user