Fix bugs and pause on zzz

This commit is contained in:
2020-12-18 04:15:09 +00:00
parent d108d7c817
commit cdd71d2610
4 changed files with 21 additions and 18 deletions

6
bot.py
View File

@@ -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