Update server

This commit is contained in:
Dominic Zimmer 2020-07-08 01:43:52 +02:00
parent f18da2263b
commit 390235a2c8

View File

@ -23,10 +23,11 @@ end
function drawState() function drawState()
-- server has 19x50 terminal -- server has 19x50 terminal
print(" [ Server Control Panel ]") print(" [ Server Control Panel ]")
print(" First Job: "..tostring(firstjob)) print()
print(" Current Job: "..tostring(curjob)) print(" First Job: "..tostring(firstjob))
print(" Fuel consumed: "..tostring(totalfuel).." ("..tostring(math.ceil(totalfuel/80))..")") print(" Current Job: "..tostring(curjob))
print(" Fuel consumed: "..tostring(totalfuel).." ("..tostring(math.ceil(totalfuel/80))..")")
print() print()
n1 = tostring(getOres("minecraft:coal_ore")) n1 = tostring(getOres("minecraft:coal_ore"))
n2 = tostring(getOres("minecraft:iron_ore")) n2 = tostring(getOres("minecraft:iron_ore"))
@ -40,12 +41,12 @@ function drawState()
n10 = tostring(getOres("mekanism:osmium_ore")) n10 = tostring(getOres("mekanism:osmium_ore"))
n11 = tostring(getOres("create:zinc_ore")) n11 = tostring(getOres("create:zinc_ore"))
n12 = tostring(getOres("create:copper_ore")) n12 = tostring(getOres("create:copper_ore"))
print(" C I G "..n1.." "..n2.." "..n3) print(" C I G "..n1.." "..n2.." "..n3)
print(" L R E D "..n4.." "..n5.." "..n6.." "..n7) print(" L R E D "..n4.." "..n5.." "..n6.." "..n7)
print(" T C O "..n8.." "..n9.." "..n10) print(" T C O "..n8.." "..n9.." "..n10)
print(" Z C "..n11.." "..n12) print(" Z C "..n11.." "..n12)
print() print()
print("Log:") print("--------------------------------------------------")
for i = logpos, (logpos + logsize - 1) do for i = logpos, (logpos + logsize - 1) do
print(thelog[((i-1) % logsize)+1]) -- map from 0..n-1 to 1..n print(thelog[((i-1) % logsize)+1]) -- map from 0..n-1 to 1..n
end end