mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
fix crash on opening villager formspec
This commit is contained in:
parent
435b5d756d
commit
414e2e7725
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ end
|
||||||
-- the tool needs to be updated.
|
-- the tool needs to be updated.
|
||||||
function mcl_enchanting.update_groupcaps(itemstack)
|
function mcl_enchanting.update_groupcaps(itemstack)
|
||||||
local name = itemstack:get_name()
|
local name = itemstack:get_name()
|
||||||
if not minetest.registered_tools[name].tool_capabilities then
|
if not minetest.registered_tools[name] or not minetest.registered_tools[name].tool_capabilities then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue