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

@@ -79,14 +79,16 @@ local function run()
if math.abs(pos.x - offset.x) +
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
projecting[b.id].box.remove()
projecting[b.id] = nil
end
offset = pos
canvas.recenter()
canvas.recenter()
end
os.sleep(.5)
end
end