From bd6d777f05b7ba2a34a5419a359f5bf682c467d6 Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 13 Jun 2022 12:25:14 +0200 Subject: [PATCH] remove check for mcl_copper, fix recipe --- mods/ITEMS/mcl_spyglass/init.lua | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/mods/ITEMS/mcl_spyglass/init.lua b/mods/ITEMS/mcl_spyglass/init.lua index 1b8ca4cd3d..fa1a823399 100644 --- a/mods/ITEMS/mcl_spyglass/init.lua +++ b/mods/ITEMS/mcl_spyglass/init.lua @@ -8,22 +8,14 @@ minetest.register_tool("mcl_spyglass:spyglass",{ _mcl_toollike_wield = true, }) -local function craft_spyglass(ingot) - minetest.register_craft({ - output = "mcl_spyglass:spyglass", - recipe = { - {"xpanes:pane_natural_flat"}, - {ingot}, - {ingot}, - } - }) -end - -if minetest.get_modpath("mcl_copper") then - craft_spyglass("mcl_copper:copper_ingot") -else - craft_spyglass("mcl_core:iron_ingot") -end +minetest.register_craft({ + output = "mcl_spyglass:spyglass", + recipe = { + {"mcl_amethyst:amethyst_shard"}, + {"mcl_copper:copper_ingot"}, + {"mcl_copper:copper_ingot"}, + } +}) local spyglass_scope = {}