Fix bugs and pause on zzz
This commit is contained in:
6
bot.py
6
bot.py
@@ -101,6 +101,10 @@ def tick(global_state):
|
||||
target.x += 0.5
|
||||
target.z += 0.5
|
||||
|
||||
if g.afk_timeout > 0:
|
||||
target = None
|
||||
g.afk_timeout -= utils.TICK
|
||||
|
||||
if target:
|
||||
d = p - target
|
||||
|
||||
@@ -205,7 +209,7 @@ def init(global_state):
|
||||
g.job = jobs.JobStates(g)
|
||||
g.chopped_tree = False
|
||||
|
||||
g.queue_afk = False
|
||||
g.afk_timeout = 0
|
||||
|
||||
g.filling = False
|
||||
|
||||
|
Reference in New Issue
Block a user