From faec76131c01502fad6813f5e63827c7eca87eef Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sun, 15 Jan 2017 02:56:06 +0300 Subject: [PATCH] aefae --- Applications.txt | 2 +- Applications/MineCodeIDE/MineCodeIDE.lua | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Applications.txt b/Applications.txt index 52338eee..3e751b37 100644 --- a/Applications.txt +++ b/Applications.txt @@ -886,7 +886,7 @@ icon="IgorTimofeev/OpenComputers/master/Applications/MineCodeIDE/Icon.pic", createShortcut="dock", forceDownload=true, - version=1.17, + version=1.18, }, { name="MineOS/Applications/Battleship", diff --git a/Applications/MineCodeIDE/MineCodeIDE.lua b/Applications/MineCodeIDE/MineCodeIDE.lua index e20bc2ee..8320ae45 100755 --- a/Applications/MineCodeIDE/MineCodeIDE.lua +++ b/Applications/MineCodeIDE/MineCodeIDE.lua @@ -301,7 +301,8 @@ local function run() gpu.setBackground(0x262626); gpu.setForeground(0xFFFFFF); gpu.fill(1, 1, oldResolutionX, oldResolutionY, " "); require("term").setCursor(1, 1) local xpcallSuccess, xpcallReason = xpcall(loadSuccess, debug.traceback) - if xpcallSuccess then + local xpcallReasonType = type(xpcallReason) + if xpcallSuccess or xpcallReasonType == "table" then MineOSCore.waitForPressingAnyKey() end @@ -309,7 +310,7 @@ local function run() buffer.start() mainWindow:draw() - if not xpcallSuccess then + if not xpcallSuccess and xpcallReasonType ~= "table" then showErrorMessage(xpcallReason) end