mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-05 01:03:44 +01:00
Duplicate groupcaps before applying unbreaking
parent
a03e7f6f3a
commit
7f3e5bda7e
@ -61,7 +61,7 @@ function mcl_enchanting.update_groupcaps(itemstack)
|
|||||||
|
|
||||||
if not hash or hash ~= groupcaps.hash then
|
if not hash or hash ~= groupcaps.hash then
|
||||||
local tool_capabilities = itemstack:get_tool_capabilities()
|
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
|
-- Increase the number of uses depending on the unbreaking level
|
||||||
-- of the tool.
|
-- of the tool.
|
||||||
|
Loading…
Reference in New Issue
Block a user