From 636b0f20df4fef3eef821c23ccc2f606828f5c6f Mon Sep 17 00:00:00 2001 From: Zefram <zefram@fysh.org> Date: Mon, 07 Jul 2014 15:15:05 +0200 Subject: [PATCH] Handheld prospecting tool --- technic/machines/LV/water_mill.lua | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/technic/machines/LV/water_mill.lua b/technic/machines/LV/water_mill.lua index bf67268..0ddccc7 100644 --- a/technic/machines/LV/water_mill.lua +++ b/technic/machines/LV/water_mill.lua @@ -16,7 +16,7 @@ }) minetest.register_node("technic:water_mill", { - description = S("Water Mill"), + description = S("Hydro %s Generator"):format("LV"), tiles = {"technic_water_mill_top.png", "technic_machine_bottom.png", "technic_water_mill_side.png", "technic_water_mill_side.png", "technic_water_mill_side.png", "technic_water_mill_side.png"}, @@ -26,13 +26,13 @@ sounds = default.node_sound_wood_defaults(), on_construct = function(pos) local meta = minetest.get_meta(pos) - meta:set_string("infotext", S("Water Mill")) + meta:set_string("infotext", S("Hydro %s Generator"):format("LV")) meta:set_int("LV_EU_supply", 0) end, }) minetest.register_node("technic:water_mill_active", { - description = S("Water Mill"), + description = S("Hydro %s Generator"):format("LV"), tiles = {"technic_water_mill_top_active.png", "technic_machine_bottom.png", "technic_water_mill_side.png", "technic_water_mill_side.png", "technic_water_mill_side.png", "technic_water_mill_side.png"}, @@ -85,16 +85,16 @@ end meta:set_string("infotext", - S("Water Mill").." ("..production_level.."%)") + S("Hydro %s Generator"):format("LV").." ("..production_level.."%)") if production_level > 0 and minetest.get_node(pos).name == "technic:water_mill" then - hacky_swap_node (pos, "technic:water_mill_active") + technic.swap_node (pos, "technic:water_mill_active") meta:set_int("LV_EU_supply", 0) return end if production_level == 0 then - hacky_swap_node(pos, "technic:water_mill") + technic.swap_node(pos, "technic:water_mill") end end }) -- Gitblit v1.8.0