Update 'Turtle/wheatDaemon.lua'

This commit is contained in:
manuel 2023-01-13 19:01:37 +00:00
parent 624073bade
commit da932012e0

View File

@ -27,6 +27,10 @@ function answer(message, id)
elseif(message == "refuel") then
wheat:refuel()
rednet.send(id, "refueled", "confirm")
elseif(message == "getLastHarvestDuration") then
rednet.send(id, tostring(wheat.lastHarvestDuration))
elseif(message == "getLastYield") then
rednet.send(id, tostring(wheat.lastYield))
end
rednet.send(id, "could not resolve message", "error")
end