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
+2 -11
View File
@@ -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