1.7.10 compatibility

This commit is contained in:
kepler155c
2018-02-16 23:17:31 -05:00
parent 3d9cdcc10f
commit 204777ba41
3 changed files with 8 additions and 7 deletions

View File

@@ -913,7 +913,7 @@ function listingPage:eventHandler(event)
if canLearn then
UI:setPage('learn')
else
self.notification:error('Missing a crafting chest\nCheck configuration')
self.notification:error('Missing a crafting chest or workbench\nCheck configuration')
end
elseif event.type == 'craft' or event.type == 'grid_select_right' then

View File

@@ -12,7 +12,7 @@ local fileName = args[1] and
shell.resolve(args[1]) or
error('Syntax: persist <file name>')
local c = Util.readFile() or error('Unable to read file')
local c = Util.readFile(fileName) or error('Unable to read file')
-- ensure it is writable - if not an error is thrown
Util.writeFile(fileName, '')