better info on upgrade
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
local Ansi = require('opus.ansi')
|
local Ansi = require('opus.ansi')
|
||||||
local SHA = require('crypto.sha2')
|
local SHA = require('opus.crypto.sha2')
|
||||||
local UI = require('opus.ui')
|
local UI = require('opus.ui')
|
||||||
local Util = require('opus.util')
|
local Util = require('opus.util')
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ local retain = Util.transpose {
|
|||||||
local state = Util.readTable('usr/config/superTreefarm') or {
|
local state = Util.readTable('usr/config/superTreefarm') or {
|
||||||
logFilter = 'log',
|
logFilter = 'log',
|
||||||
saplingFilter = 'sapling',
|
saplingFilter = 'sapling',
|
||||||
|
updated = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
local clock = os.clock()
|
local clock = os.clock()
|
||||||
@@ -535,6 +536,18 @@ local tasks = {
|
|||||||
{ desc = 'Sleeping', fn = updateClock },
|
{ 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.reset()
|
||||||
turtle.set({
|
turtle.set({
|
||||||
attackPolicy = 'attack',
|
attackPolicy = 'attack',
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
title = 'MBS - Mildly Better Shell',
|
title = 'A Mildly Better Shell',
|
||||||
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/mbs',
|
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/mbs',
|
||||||
description = [[
|
description = [[
|
||||||
A shell alternative and more by SquidDev-CC. See:
|
A shell alternative and more by SquidDev-CC. See:
|
||||||
https://github.com/SquidDev-CC/mbs
|
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',
|
licence = 'MIT',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user