More global localiztions

This commit is contained in:
ShadowNinja
2013-12-17 19:51:38 -05:00
parent 78cacdcbc6
commit d8437faebc
4 changed files with 28 additions and 27 deletions

View File

@ -121,6 +121,7 @@ minetest.register_abm({
-- Power off automatically if no longer connected to a switching station
technic.switching_station_timeout_count(pos, "LV")
local src_item = nil
if srcstack then
src_item = srcstack:to_table()
end

View File

@ -60,7 +60,7 @@ minetest.register_abm({
-- Power off automatically if no longer connected to a switching station
technic.switching_station_timeout_count(pos, "MV")
srcstack = inv:get_stack("src", 1)
local srcstack = inv:get_stack("src", 1)
if inv:is_empty("src") or
srcstack:get_wear() == 0 or
srcstack:get_name() == "technic:water_can" or

View File

@ -67,7 +67,7 @@ minetest.register_node("technic:switching_station",{
-- A node must be touched by the station continuously in order to function
function technic.switching_station_timeout_count(pos, tier)
local meta = minetest.get_meta(pos)
timeout = meta:get_int(tier.."_EU_timeout")
local timeout = meta:get_int(tier.."_EU_timeout")
if timeout == 0 then
meta:set_int(tier.."_EU_input", 0)
else