This commit is contained in:
Crispy 2025-05-27 03:02:53 +02:00
parent 1ff3cea4d6
commit 5422d52065
21 changed files with 21953 additions and 369 deletions

View file

@ -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)