From 68ea0acbd0cb6dc61b849efab4d6207bdf515853 Mon Sep 17 00:00:00 2001 From: Zefram <zefram@fysh.org> Date: Wed, 09 Jul 2014 09:17:43 +0200 Subject: [PATCH] Consistently use cable in electric machine recipes --- technic/machines/MV/tool_workshop.lua | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/technic/machines/MV/tool_workshop.lua b/technic/machines/MV/tool_workshop.lua index 67a37e6..1255931 100644 --- a/technic/machines/MV/tool_workshop.lua +++ b/technic/machines/MV/tool_workshop.lua @@ -8,27 +8,27 @@ minetest.register_craft({ output = 'technic:tool_workshop', recipe = { - {'group:wood', 'group:wood', 'group:wood'}, - {'group:wood', 'default:diamond', 'group:wood'}, - {'default:stone', 'default:copper_ingot', 'default:stone'}, + {'group:wood', 'default:diamond', 'group:wood'}, + {'group:wood', 'technic:machine_casing', 'group:wood'}, + {'default:stone', 'technic:mv_cable0', 'default:stone'}, } }) local workshop_formspec = "invsize[8,9;]".. "list[current_name;src;3,1;1,1;]".. - "label[0,0;"..S("Tool Workshop").."]".. + "label[0,0;"..S("%s Tool Workshop"):format("MV").."]".. "list[current_player;main;0,5;8,4;]" minetest.register_node("technic:tool_workshop", { - description = S("Tool Workshop"), + description = S("%s Tool Workshop"):format("MV"), tiles = {"technic_workshop_top.png", "technic_machine_bottom.png", "technic_workshop_side.png", "technic_workshop_side.png", "technic_workshop_side.png", "technic_workshop_side.png"}, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, sounds = default.node_sound_wood_defaults(), on_construct = function(pos) local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("Tool Workshop")) + meta:set_string("infotext", S("%s Tool Workshop"):format("MV")) meta:set_string("formspec", workshop_formspec) local inv = meta:get_inventory() inv:set_size("src", 1) @@ -46,7 +46,7 @@ local meta = minetest.get_meta(pos) local inv = meta:get_inventory() local eu_input = meta:get_int("MV_EU_input") - local machine_name = S("Tool Workshop") + local machine_name = S("%s Tool Workshop"):format("MV") local machine_node = "technic:tool_workshop" local demand = 5000 @@ -62,11 +62,11 @@ local repairable = false local srcstack = inv:get_stack("src", 1) - if not srcstack:is_empty("src") then + if not srcstack:is_empty() then local itemdef = minetest.registered_items[srcstack:get_name()] if itemdef and - itemdef.wear_represents and - itemdef.wear_represents == "mechanical_wear" and + (not itemdef.wear_represents or + itemdef.wear_represents == "mechanical_wear") and srcstack:get_wear() ~= 0 then repairable = true end -- Gitblit v1.8.0