From a2245be1e7b012ee86206219127d4bdec242bf26 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Wed, 5 Apr 2017 11:31:07 +0300 Subject: [PATCH] aefaef --- Applications.txt | 2 +- Applications/GeoScan2/GeoScan2.lua | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Applications.txt b/Applications.txt index 0ae19365..cf293d5d 100644 --- a/Applications.txt +++ b/Applications.txt @@ -532,7 +532,7 @@ type="Application", icon="IgorTimofeev/OpenComputers/master/Applications/GeoScan2/Icon.pic", createShortcut="desktop", - version=1.04, + version=1.05, resources={ { name="Earth.pic", diff --git a/Applications/GeoScan2/GeoScan2.lua b/Applications/GeoScan2/GeoScan2.lua index fb22814a..aba54f18 100644 --- a/Applications/GeoScan2/GeoScan2.lua +++ b/Applications/GeoScan2/GeoScan2.lua @@ -8,7 +8,13 @@ local MineOSCore = require("MineOSCore") -------------------------------------------------------------------------------------------------------------------- -if not component.isAvailable("geolyzer") or not component.isAvailable("hologram") then GUI.error("This program requires a geolyzer and hologram projector to work!"); return end +if not component.isAvailable("geolyzer") then + GUI.error("This program requires a geolyzer to work!"); return +end + +if not component.isAvailable("hologram") then + GUI.error("This program requires a hologram projector to work!"); return +end component.gpu.setResolution(component.gpu.maxResolution()) buffer.start()