h
This commit is contained in:
parent
1ff3cea4d6
commit
5422d52065
21 changed files with 21953 additions and 369 deletions
|
@ -131,12 +131,11 @@ function connectTankOrAssign(fluid)
|
|||
end
|
||||
|
||||
function connectTank(name)
|
||||
-- TODO only single tank, otherwise pipes break
|
||||
for index, tank in pairs(_G.fluidTanks) do
|
||||
if tank.name == name then
|
||||
if index == _G.connectTank then
|
||||
print("tank", name, index, "already connected")
|
||||
return
|
||||
break
|
||||
end
|
||||
goTo(tankPos[index])
|
||||
redstone.setOutput("bottom", true)
|
||||
|
@ -144,10 +143,9 @@ function connectTank(name)
|
|||
redstone.setOutput("bottom", false)
|
||||
_G.connectedTank = index
|
||||
print("tank", name, index, "already connected")
|
||||
return
|
||||
break
|
||||
end
|
||||
end
|
||||
saveFluids()
|
||||
end
|
||||
|
||||
function fluidInvAdd(name, amount)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue