From fba154621326e546021c889625b32c6ea670a06b Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sun, 7 Apr 2019 21:20:42 -0400 Subject: [PATCH] tweaks + gps server fix --- gps/gpsServer.lua | 8 ++++---- openos/.package | 3 ++- openos/cat.lua | 1 + recipeBook/.package | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gps/gpsServer.lua b/gps/gpsServer.lua index f247401..ee4ab7e 100644 --- a/gps/gpsServer.lua +++ b/gps/gpsServer.lua @@ -125,10 +125,10 @@ local function server() local config = Config.load('gpsServer') local modems = { } - modems['modem_' .. config.east] = { x = config.x + 2, y = config.y + 2, z = config.z } - modems['modem_' .. config.west] = { x = config.x - 2, y = config.y + 2, z = config.z } - modems['modem_' .. config.south] = { x = config.x, y = config.y, z = config.z + 2 } - modems['modem_' .. config.north] = { x = config.x, y = config.y, z = config.z - 2 } + modems['modem_' .. config.east] = { x = config.x + 2, y = config.y + 1, z = config.z } + modems['modem_' .. config.west] = { x = config.x - 2, y = config.y + 1, z = config.z } + modems['modem_' .. config.south] = { x = config.x, y = config.y - 1, z = config.z + 2 } + modems['modem_' .. config.north] = { x = config.x, y = config.y - 1, z = config.z - 2 } for k, modem in pairs(modems) do Util.merge(modem, peripheral.wrap(k) or { }) diff --git a/openos/.package b/openos/.package index d352c6c..b248f01 100644 --- a/openos/.package +++ b/openos/.package @@ -1,6 +1,7 @@ { title = 'Shell utilities', repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/openos', - description = [[ Experimental! Utilties for shell: grep, cat, touch, etc ]], + description = [[Experimental! + Utilties for shell: grep, cat, touch, etc ]], licence = 'MIT', } diff --git a/openos/cat.lua b/openos/cat.lua index 487978c..de1a293 100644 --- a/openos/cat.lua +++ b/openos/cat.lua @@ -22,6 +22,7 @@ for i = 1, #args do file:close() if chunk then io.write(chunk) + io.write('\n') end end end diff --git a/recipeBook/.package b/recipeBook/.package index 0662897..04b1063 100644 --- a/recipeBook/.package +++ b/recipeBook/.package @@ -2,5 +2,5 @@ title = 'Recipe books for crafting programs', repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/recipeBook', description = [[ WIP ]], - licence = 'MIT', + licence = 'Recipes for crafting', }