This commit is contained in:
Julian Brammer 2024-06-06 23:36:09 +02:00
parent 494c9e6d6a
commit 0ccb805777
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
-- https://tweaked.cc/guide/gps_setup.html -- https://tweaked.cc/guide/gps_setup.html
-- Seems to not work with optifine -- Seems to not work with optifine
-- put shell.run("/brulijam/gps-tower.lua") in brulijam/task.lua
basic = require("lib.basic") basic = require("lib.basic")

View File

@ -76,7 +76,7 @@ local function savePositionToFile()
if itemDetail ~= nil then if itemDetail ~= nil then
if itemDetail.name == "computercraft:wireless_modem_advanced" then if itemDetail.name == "computercraft:wireless_modem_advanced" then
turtle.equipRight() turtle.equipRight()
posX, posY, posZ = gps.locate() posZ, posY, posX = gps.locate()
sleep(1) sleep(1)
basic.appendToFileNl("/brulijam/files/chests-turtle-miner-fibo.txt", "Chest at: " .. posX .. ", " .. posY .. ", " .. posZ) basic.appendToFileNl("/brulijam/files/chests-turtle-miner-fibo.txt", "Chest at: " .. posX .. ", " .. posY .. ", " .. posZ)
networking.sendLog("all", "/brulijam/logs/chests-to-collect.txt", posX .. ", " .. posY .. ", " .. posZ) networking.sendLog("all", "/brulijam/logs/chests-to-collect.txt", posX .. ", " .. posY .. ", " .. posZ)