tweaks + gps server fix

This commit is contained in:
kepler155c@gmail.com
2019-04-07 21:20:42 -04:00
parent 8f2c97d269
commit fba1546213
4 changed files with 8 additions and 6 deletions

View File

@@ -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 { })