mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 08:01:07 +01:00
Fix #1922
This commit is contained in:
parent
f3c814bf8f
commit
d898b02c8b
1 changed files with 4 additions and 3 deletions
|
@ -14,10 +14,11 @@ end
|
|||
|
||||
function mcl_enchanting.unload_enchantments(itemstack)
|
||||
local itemdef = itemstack:get_definition()
|
||||
if itemdef.tool_capabilities then
|
||||
itemstack:get_meta():set_tool_capabilities(nil)
|
||||
end
|
||||
local meta = itemstack:get_meta()
|
||||
if itemdef.tool_capabilities then
|
||||
meta:set_tool_capabilities(nil)
|
||||
meta:set_string("groupcaps_hash", "")
|
||||
end
|
||||
if meta:get_string("name") == "" then
|
||||
meta:set_string("description", "")
|
||||
meta:set_string("groupcaps_hash", "")
|
||||
|
|
Loading…
Reference in a new issue