forked from VoxeLibre/VoxeLibre
Fix #1358
This commit is contained in:
parent
0996a83ba0
commit
b0c7941b3a
|
@ -45,6 +45,10 @@ end
|
||||||
-- To make it more efficient it will first check a hash value to determine if
|
-- To make it more efficient it will first check a hash value to determine if
|
||||||
-- the tool needs to be updated.
|
-- the tool needs to be updated.
|
||||||
function mcl_enchanting.update_groupcaps(itemstack)
|
function mcl_enchanting.update_groupcaps(itemstack)
|
||||||
|
if not itemstack:get_tool_capabilities() then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local name = itemstack:get_name()
|
local name = itemstack:get_name()
|
||||||
local level = mcl_enchanting.get_enchantment(itemstack, "efficiency")
|
local level = mcl_enchanting.get_enchantment(itemstack, "efficiency")
|
||||||
local groupcaps = get_efficiency_groupcaps(name, level)
|
local groupcaps = get_efficiency_groupcaps(name, level)
|
||||||
|
|
Loading…
Reference in New Issue