From 7d4688b70cfc10a6afab3af360f572ed90a70481 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 6 Jan 2021 14:17:27 +0100 Subject: [PATCH] Fix enchanted items showing up in craftguide --- mods/ITEMS/mcl_enchanting/engine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_enchanting/engine.lua b/mods/ITEMS/mcl_enchanting/engine.lua index ab42f5d98d..e03def36ef 100644 --- a/mods/ITEMS/mcl_enchanting/engine.lua +++ b/mods/ITEMS/mcl_enchanting/engine.lua @@ -148,7 +148,6 @@ function mcl_enchanting.combine(itemstack, combine_with) local combine_name = combine_with:get_name() local enchanted_itemname = mcl_enchanting.get_enchanted_itemstring(itemname) if enchanted_itemname ~= mcl_enchanting.get_enchanted_itemstring(combine_name) and not mcl_enchanting.is_book(combine_name) then - print(combine_name, mcl_enchanting.is_book(combine_name)) return false end local enchantments = mcl_enchanting.get_enchantments(itemstack) @@ -221,6 +220,7 @@ function mcl_enchanting.initialize() new_def.wield_image = new_def.wield_image .. mcl_enchanting.overlay end new_def.groups.not_in_creative_inventory = 1 + new_def.groups.not_in_craft_guide = 1 new_def.groups.enchanted = 1 new_def.texture = itemdef.texture or itemname:gsub("%:", "_") new_def._mcl_enchanting_enchanted_tool = new_name