better info on upgrade

This commit is contained in:
kepler155c@gmail.com
2019-06-29 08:50:40 -04:00
parent b8544644b7
commit fdf6590dc7
3 changed files with 18 additions and 5 deletions

View File

@@ -53,6 +53,7 @@ local retain = Util.transpose {
local state = Util.readTable('usr/config/superTreefarm') or {
logFilter = 'log',
saplingFilter = 'sapling',
updated = true,
}
local clock = os.clock()
@@ -535,6 +536,18 @@ local tasks = {
{ desc = 'Sleeping', fn = updateClock },
}
if not state.updated then
print([[Super Tree Farm has had a major update.
Unfortunately, you will need to remove the
usr/config/superTreefarm and place the turtle in
the starting location. Give the turtle a chest,
furnace, scanner and sensor and restart.
This message will not be repeated.
]])
setState('updated', true)
read()
end
turtle.reset()
turtle.set({
attackPolicy = 'attack',