tweaks + gps server fix
This commit is contained in:
@@ -125,10 +125,10 @@ local function server()
|
|||||||
local config = Config.load('gpsServer')
|
local config = Config.load('gpsServer')
|
||||||
|
|
||||||
local modems = { }
|
local modems = { }
|
||||||
modems['modem_' .. config.east] = { x = config.x + 2, y = config.y + 2, z = config.z }
|
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 + 2, 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, z = config.z + 2 }
|
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, 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
|
for k, modem in pairs(modems) do
|
||||||
Util.merge(modem, peripheral.wrap(k) or { })
|
Util.merge(modem, peripheral.wrap(k) or { })
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
title = 'Shell utilities',
|
title = 'Shell utilities',
|
||||||
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/openos',
|
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',
|
licence = 'MIT',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ for i = 1, #args do
|
|||||||
file:close()
|
file:close()
|
||||||
if chunk then
|
if chunk then
|
||||||
io.write(chunk)
|
io.write(chunk)
|
||||||
|
io.write('\n')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
title = 'Recipe books for crafting programs',
|
title = 'Recipe books for crafting programs',
|
||||||
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/recipeBook',
|
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/recipeBook',
|
||||||
description = [[ WIP ]],
|
description = [[ WIP ]],
|
||||||
licence = 'MIT',
|
licence = 'Recipes for crafting',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user