From a5501abe4aa2932e6fa8527bee81068c50ecee08 Mon Sep 17 00:00:00 2001 From: cale Date: Mon, 2 Jan 2017 11:21:28 +0100 Subject: [PATCH] fixed some bugs --- mods/armor/init.lua | 2 +- mods/crafting_guide/init.lua | 4 +++- mods/fishing/init.lua | 10 ++++++++++ mods/legendary_items/init.lua | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/mods/armor/init.lua b/mods/armor/init.lua index 9c19ffa..1ba13ca 100644 --- a/mods/armor/init.lua +++ b/mods/armor/init.lua @@ -181,7 +181,7 @@ armor.register_armor("copper", { protection = 15, skin = "armor_skin_copper", - material = "furnace:iron_plate", + material = "furnace:copper_plate", }) armor.register_armor("diamond", { diff --git a/mods/crafting_guide/init.lua b/mods/crafting_guide/init.lua index 257b7f0..425935e 100644 --- a/mods/crafting_guide/init.lua +++ b/mods/crafting_guide/init.lua @@ -77,7 +77,9 @@ function crafting_guide.get_item_formspec(page, player) local items = {} for name,def in pairs(minetest.registered_items) do if not(def.groups.not_in_creative_inventory) then - table.insert(items,name) + if name ~= "" then + table.insert(items,name) + end end end diff --git a/mods/fishing/init.lua b/mods/fishing/init.lua index 7b04c12..1bea43d 100644 --- a/mods/fishing/init.lua +++ b/mods/fishing/init.lua @@ -79,3 +79,13 @@ furnace.register_recipe({ input = "fishing:fish", output = "fishing:cooked_fish", }) + +furnace.register_recipe({ + input = "fishing:fish_1", + output = "fishing:cooked_fish", +}) + +furnace.register_recipe({ + input = "fishing:fish_2", + output = "fishing:cooked_fish", +}) diff --git a/mods/legendary_items/init.lua b/mods/legendary_items/init.lua index c9f33ef..903bfd6 100644 --- a/mods/legendary_items/init.lua +++ b/mods/legendary_items/init.lua @@ -34,7 +34,7 @@ legendary_items.register_rare_weapon = function(name, level, def) table.insert(def.materials, "default:ruby") blueprint.register_blueprint(name, { - description = def.description .. "\n Level: ".. tostring(level).. "\n Damage: " .. tostring(def.damage+skills.get_dmg(level)) .. "\n Rare Item", + description = def.description .. "\n Level: ".. tostring(level).. "\n Damage: " .. tostring(def.damage) .. "\n Rare Item", materials = def.materials, out = "legendary_items:"..name, color = "yellow"