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

@@ -1,5 +1,5 @@
local Ansi = require('opus.ansi')
local SHA = require('crypto.sha2')
local SHA = require('opus.crypto.sha2')
local UI = require('opus.ui')
local Util = require('opus.util')

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',

View File

@@ -1,11 +1,11 @@
{
title = 'MBS - Mildly Better Shell',
title = 'A Mildly Better Shell',
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/mbs',
description = [[
A shell alternative and more by SquidDev-CC. See:
https://github.com/SquidDev-CC/mbs
A shell alternative and more by SquidDev-CC. See:
https://github.com/SquidDev-CC/mbs
MBS is a series of utilities for improving the default CraftOS experience.
MBS is a series of utilities for improving the default CraftOS experience.
]],
licence = 'MIT',
}