mirror of
https://github.com/kepler155c/opus
synced 2025-10-21 02:37:48 +00:00
cleanup
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user