From 859c01ca027d9c256d87cee817a96772e0a6d62b Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 22 Feb 2018 23:17:01 +0100 Subject: [PATCH] Fixed OC LUA script for radar showing status offscreen --- .../warpdrive/lua.OpenComputers/warpdriveRadar/scan.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/assets/warpdrive/lua.OpenComputers/warpdriveRadar/scan.lua b/src/main/resources/assets/warpdrive/lua.OpenComputers/warpdriveRadar/scan.lua index 8b3e2483..cf115373 100644 --- a/src/main/resources/assets/warpdrive/lua.OpenComputers/warpdriveRadar/scan.lua +++ b/src/main/resources/assets/warpdrive/lua.OpenComputers/warpdriveRadar/scan.lua @@ -100,7 +100,7 @@ function scanAndDraw() if energyRequired == nil then energyRequired = 0 end if (energyRequired <= 0 or energy < energyRequired) then - textOut((w / 2) - 7, 1, " /!\\ LOW POWER ", 0xFFFFFF, 0xFF0000) + textOut((w / 2) - 8, 1, " /!\\ LOW POWER ", 0xFFFFFF, 0xFF0000) os.sleep(1) return 0 @@ -109,7 +109,7 @@ function scanAndDraw() radar.radius(radius) radar.start() local scanDuration = radar.getScanDuration(radius) - textOut(w - 3, 1, " ping sent ", 0x808080, 0x000000) + textOut((w / 2) - 8, 1, " ping sent ", 0x808080, 0x000000) os.sleep(scanDuration) local delay = 0