cleanup
This commit is contained in:
@@ -99,7 +99,7 @@ Needs work
|
||||
\030 \031f\030f\031e\139\030e\128\030f\159\129\0314\130\131\131\129",
|
||||
run = "recorder.lua",
|
||||
},
|
||||
[ "4486006f811b88cacd5f211fd579717e29b600cd" ] = {
|
||||
[ "swarm" ] = {
|
||||
title = "Swarm",
|
||||
category = "Turtle",
|
||||
icon = " \0315\\\030 \031 \
|
||||
|
||||
@@ -33,6 +33,10 @@ function Adapter:listItems(throttle)
|
||||
end
|
||||
end
|
||||
|
||||
-- TODO: cache number of slots, free slots, used slots
|
||||
-- useful for when inserting into chests
|
||||
-- ie. insert only if chest does not have item and has free slots
|
||||
|
||||
self.cache = cache
|
||||
end
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
run = "simpleMiner.lua",
|
||||
requires = 'turtle',
|
||||
},
|
||||
[ "4486006f811b88cacd5f211fd579717e29b600cd" ] = {
|
||||
[ "scanningMiner" ] = {
|
||||
title = "Scanning",
|
||||
category = "Mining",
|
||||
icon = " \0315\\\030 \031 \
|
||||
|
||||
@@ -113,6 +113,8 @@ local function run(member)
|
||||
end
|
||||
os.sleep(.5)
|
||||
if os.clock() - c > 3 then
|
||||
Sound.play('entity.villager.no')
|
||||
print('stuck: ' .. member.id)
|
||||
turtle.set({ status = 'Stuck' })
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user