Fix bugs and pause on zzz
This commit is contained in:
@@ -578,12 +578,8 @@ class Game:
|
||||
|
||||
if command == 'zzz':
|
||||
if not self.g.afk and self.g.dimension == 'overworld':
|
||||
if self.g.path:
|
||||
travel_time = int(len(self.g.path) * 0.4) + 2
|
||||
reply = 'gimme ' + str(travel_time) + ' secs, moving'
|
||||
self.g.queue_afk = True
|
||||
else:
|
||||
reply = '/afk'
|
||||
reply = '/afk'
|
||||
self.g.afk_timeout = 5.0
|
||||
|
||||
if command == 'tree':
|
||||
pos = utils.pint(self.g.pos)
|
||||
@@ -1101,8 +1097,3 @@ class Game:
|
||||
|
||||
if not self.g.path:
|
||||
self.g.correction_count = 0
|
||||
|
||||
if self.g.queue_afk:
|
||||
self.g.chat.send('/afk')
|
||||
self.g.queue_afk = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user