Update 'Turtle/wheatDaemon.lua'
This commit is contained in:
@@ -28,9 +28,9 @@ function answer(message, id)
|
|||||||
wheat:refuel()
|
wheat:refuel()
|
||||||
rednet.send(id, "refueled", "confirm")
|
rednet.send(id, "refueled", "confirm")
|
||||||
elseif(message == "getLastHarvestDuration") then
|
elseif(message == "getLastHarvestDuration") then
|
||||||
rednet.send(id, tostring(wheat.lastHarvestDuration))
|
rednet.send(id, tostring(wheat.lastHarvestDuration), "confirm")
|
||||||
elseif(message == "getLastYield") then
|
elseif(message == "getLastYield") then
|
||||||
rednet.send(id, tostring(wheat.lastYield))
|
rednet.send(id, tostring(wheat.lastYield), "confirm")
|
||||||
end
|
end
|
||||||
rednet.send(id, "could not resolve message", "error")
|
rednet.send(id, "could not resolve message", "error")
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user