Move command processing to separate file

This commit is contained in:
2021-04-23 07:01:00 +00:00
parent ae2b0f4875
commit a5642409d2
4 changed files with 533 additions and 509 deletions
+3
View File
@@ -24,6 +24,7 @@ from mosfet.protocol.managers import DataManager, ChunksManager, ChatManager, Ch
from munch import Munch
from mosfet import commands
from mosfet import game
from mosfet import job
from mosfet import path
@@ -38,6 +39,7 @@ from mosfet.info import mobs
for module in [
blocks,
commands,
game,
items,
job,
@@ -267,6 +269,7 @@ def bot(global_state):
g.game = game.Game(g)
g.world = world.World(g)
g.commands = commands.Commands(g)
try:
while not g.pos: