Replant the same tree that was chopped

This commit is contained in:
2020-12-15 22:36:03 +00:00
parent 6d62c07428
commit 6eb7149890
3 changed files with 37 additions and 23 deletions
+6 -3
View File
@@ -37,6 +37,8 @@ import mcdata
importlib.reload(mcdata)
import mobs
importlib.reload(mobs)
import bot
importlib.reload(bot)
class MCWorld:
def __init__(self, global_state):
@@ -651,9 +653,7 @@ class Game:
reply += ', I need a bed'
if command == 'stop':
self.g.job.stop()
self.g.path = []
self.g.look_at = None
bot.init(self.g)
reply = 'ok'
if command == 'drop':
@@ -739,6 +739,9 @@ class Game:
print(len(navpath))
print(navpath)
print(round(time.time() - start, 3), 'seconds')
if self.g.job:
self.g.job.stop()
self.g.look_at = None
reply = 'ok'
else:
reply = 'no path'