From fdf6590dc7253db24158e1cff40b22a99327c8a5 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sat, 29 Jun 2019 08:50:40 -0400 Subject: [PATCH] better info on upgrade --- common/Appstore.lua | 2 +- farms/superTreefarm.lua | 13 +++++++++++++ mbs/.package | 8 ++++---- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/common/Appstore.lua b/common/Appstore.lua index 71e5c4f..09dd35d 100644 --- a/common/Appstore.lua +++ b/common/Appstore.lua @@ -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') diff --git a/farms/superTreefarm.lua b/farms/superTreefarm.lua index ca45395..455ae5e 100644 --- a/farms/superTreefarm.lua +++ b/farms/superTreefarm.lua @@ -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', diff --git a/mbs/.package b/mbs/.package index ed4248d..0307605 100644 --- a/mbs/.package +++ b/mbs/.package @@ -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', }