0
0
Fork 0

Duplicate groupcaps before applying unbreaking

This commit is contained in:
Elias Åström 2021-04-23 15:49:37 +02:00
parent a03e7f6f3a
commit 7f3e5bda7e
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ function mcl_enchanting.update_groupcaps(itemstack)
if not hash or hash ~= groupcaps.hash then
local tool_capabilities = itemstack:get_tool_capabilities()
tool_capabilities.groupcaps = groupcaps.values
tool_capabilities.groupcaps = table.copy(groupcaps.values)
-- Increase the number of uses depending on the unbreaking level
-- of the tool.