mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-01 15:50:39 +02:00
More global localiztions
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user