From 413d20d6c83a218c63fcb4fbf840010d1d380f86 Mon Sep 17 00:00:00 2001
From: Emon <emon@openmailbox.org>
Date: Wed, 18 May 2016 15:22:20 +0200
Subject: [PATCH] Updated Italian locale

---
 technic/machines/switching_station.lua |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/technic/machines/switching_station.lua b/technic/machines/switching_station.lua
index c510683..f7ec0b6 100644
--- a/technic/machines/switching_station.lua
+++ b/technic/machines/switching_station.lua
@@ -38,9 +38,9 @@
 minetest.register_craft({
 	output = "technic:switching_station",
 	recipe = {
-		{"",                        "technic:lv_transformer", ""},
-		{"default:copper_ingot",    "technic:machine_casing", "default:copper_ingot"},
-		{"technic:lv_cable0",       "technic:lv_cable0",      "technic:lv_cable0"}
+		{"",                     "technic:lv_transformer", ""},
+		{"default:copper_ingot", "technic:machine_casing", "default:copper_ingot"},
+		{"technic:lv_cable",     "technic:lv_cable",       "technic:lv_cable"}
 	}
 })
 
@@ -49,14 +49,9 @@
 	tiles  = {"technic_water_mill_top_active.png", "technic_water_mill_top_active.png",
                   "technic_water_mill_top_active.png", "technic_water_mill_top_active.png",
 	          "technic_water_mill_top_active.png", "technic_water_mill_top_active.png"},
-	groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
+	groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_all_tiers=1},
+	connect_sides = {"bottom"},
 	sounds = default.node_sound_wood_defaults(),
-	drawtype = "nodebox",
-	paramtype = "light",
-	node_box = {
-		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
-	},
 	on_construct = function(pos)
 		local meta = minetest.get_meta(pos)
 		meta:set_string("infotext", S("Switching Station"))
@@ -171,6 +166,7 @@
 -----------------------------------------------
 minetest.register_abm({
 	nodenames = {"technic:switching_station"},
+	label = "Switching Station", -- allows the mtt profiler to profile this abm individually
 	interval   = 1,
 	chance     = 1,
 	action = function(pos, node, active_object_count, active_object_count_wider)
@@ -293,7 +289,7 @@
 
 		meta:set_string("infotext",
 				S("@1. Supply: @2 Demand: @3",
-				machine_name, technic.prettynum(PR_eu_supply), technic.prettynum(RE_eu_demand)))
+				machine_name, technic.pretty_num(PR_eu_supply), technic.pretty_num(RE_eu_demand)))
 
 		-- If the PR supply is enough for the RE demand supply them all
 		if PR_eu_supply >= RE_eu_demand then

--
Gitblit v1.8.0