overlay glasses

This commit is contained in:
kepler155c@gmail.com
2019-03-19 06:23:12 -04:00
parent 6bf7ca4985
commit 048fbc41c5
2 changed files with 9 additions and 2 deletions

View File

@@ -20,4 +20,9 @@
\030c\031d\129\129\130\030b\031f\157\0300\031b\157\031e\136\140\030f\0316\148\ \030c\031d\129\129\130\030b\031f\157\0300\031b\157\031e\136\140\030f\0316\148\
\031c\143\143\143\0310\130\0300\031f\144\031e\137\030f\0310\135\0306\031f\149", \031c\143\143\143\0310\130\0300\031f\144\031e\137\030f\0310\135\0306\031f\149",
}, },
[ "orescanner" ] = {
title = "Ores",
category = "Neural",
run = "ores.lua",
},
} }

View File

@@ -79,14 +79,16 @@ local function run()
if math.abs(pos.x - offset.x) + if math.abs(pos.x - offset.x) +
math.abs(pos.y - offset.y) + math.abs(pos.y - offset.y) +
math.abs(pos.z - offset.z) > 16 then math.abs(pos.z - offset.z) > 64 then
for _, b in pairs(projecting) do for _, b in pairs(projecting) do
projecting[b.id].box.remove() projecting[b.id].box.remove()
projecting[b.id] = nil projecting[b.id] = nil
end end
offset = pos offset = pos
canvas.recenter() canvas.recenter()
end end
os.sleep(.5)
end end
end end