mirror of
https://github.com/Kiritow/OpenComputerScripts.git
synced 2024-03-22 13:10:46 +08:00
Update transport client
This commit is contained in:
parent
757d965bf2
commit
e0c3a48cb2
|
@ -208,7 +208,7 @@ local function getNewTransID(cnt)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function SetTicket(Dest)
|
local function SetTicket(Dest)
|
||||||
routing_track.setDestination(Dest)
|
out_ticket.setDestination(Dest)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function doLoadWork(item_cnt)
|
local function doLoadWork(item_cnt)
|
||||||
|
@ -267,6 +267,14 @@ local function doLoadWork(item_cnt)
|
||||||
lockway=0
|
lockway=0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function startOutWay()
|
||||||
|
setSignal("OutCtrl",green)
|
||||||
|
os.sleep(0.5)
|
||||||
|
setSignal("OutCtrl",red)
|
||||||
|
|
||||||
|
unlockOutWay()
|
||||||
|
end
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
local e=GetNextEvent(bus)
|
local e=GetNextEvent(bus)
|
||||||
if(e.event=="minecart") then
|
if(e.event=="minecart") then
|
||||||
|
@ -288,7 +296,9 @@ local function doLoadWork(item_cnt)
|
||||||
elseif(e.minecartType=="cart_worldspike_admin") then
|
elseif(e.minecartType=="cart_worldspike_admin") then
|
||||||
print("LoadWork: Found world spike. Finish.")
|
print("LoadWork: Found world spike. Finish.")
|
||||||
trigger()
|
trigger()
|
||||||
unlockOutWay()
|
trigger()
|
||||||
|
|
||||||
|
startOutWay()
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
print("LoadWork: Skipping unknown cart_type: " .. e.minecartType)
|
print("LoadWork: Skipping unknown cart_type: " .. e.minecartType)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user