1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-21 02:37:48 +00:00
This commit is contained in:
kepler155c@gmail.com
2017-09-18 14:46:46 -04:00
parent 36fd5ca073
commit 00fe2c9989
5 changed files with 26 additions and 8 deletions

View File

@@ -196,8 +196,8 @@ local function pathTo(dest, options)
dest = selectDestination(dests, box, map, dim)
if not dest then
error('failed to reach destination')
-- return false, 'failed to reach destination'
-- error('failed to reach destination')
return false, 'failed to reach destination'
end
if turtle.point.x == dest.x and turtle.point.z == dest.z and turtle.point.y == dest.y then
break

View File

@@ -343,6 +343,11 @@ function Manager:click(button, x, y)
if button == 1 then
local c = os.clock()
if self.doubleClickTimer then
debug(c - self.doubleClickTimer)
end
if self.doubleClickTimer and (c - self.doubleClickTimer < 1.9) and
self.doubleClickX == x and self.doubleClickY == y and
self.doubleClickElement == clickEvent.element then