projects
/
cc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddcf4fd
)
Another whoops
author
Olav Bakke Svendsen
<mail@olavbs.no>
Wed, 11 Oct 2023 21:29:27 +0000
(23:29 +0200)
committer
Olav Bakke Svendsen
<mail@olavbs.no>
Wed, 11 Oct 2023 21:29:27 +0000
(23:29 +0200)
steam/temporary-coal-feeder.lua
patch
|
blob
|
history
diff --git
a/steam/temporary-coal-feeder.lua
b/steam/temporary-coal-feeder.lua
index f1a76f77ddab72bd1df426f214edec159280b6a6..baa78ff6460788a1451a9c63f5012878ebfd4e71 100644
(file)
--- a/
steam/temporary-coal-feeder.lua
+++ b/
steam/temporary-coal-feeder.lua
@@
-20,11
+20,11
@@
for _,p in pairs(peripheral.getNames()) do
end
local locate_coal = function()
- local
t
= {}
+ local
stock
= {}
for addr,barrel in pairs(barrels) do
- local item = barrel.getItemDetail(1)
- t[addr] = item.count()
+ stock[addr] = barrel.getItemDetail(1).count
end
+ return stock
end
local feed = function(stock)