Move command processing to separate file
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user