Fix imports

This commit is contained in:
2021-04-22 00:46:54 +00:00
parent d099ae6965
commit 38f3b0ed67
28 changed files with 167 additions and 169 deletions
+13 -14
View File
@@ -8,12 +8,10 @@ from itertools import count
from munch import Munch
from copy import copy
from vector import Point3D
from minecraft.networking.packets import Packet, clientbound, serverbound
from minecraft.networking.types import BlockFace
from protocol.packets import (
from mosfet.protocol.packets import (
SetSlotPacket, PlayerDiggingPacket,
BlockBreakAnimationPacket, AcknowledgePlayerDiggingPacket,
HeldItemChangePacket, PickItemPacket, OpenWindowPacket,
@@ -24,16 +22,17 @@ from protocol.packets import (
SelectTradePacket, DisconnectPacket,
)
from protocol.types import Slot
import print_help
from mosfet.protocol.types import Slot
import utils
import path
import blocks
import items
import mcdata
import mobs
import bot
from mosfet import print_help
from mosfet import utils
from mosfet import path
from mosfet import blocks
from mosfet import items
from mosfet import mcdata
from mosfet import mobs
from mosfet import bot
from mosfet import vector
class MCWorld:
def __init__(self, global_state):
@@ -387,7 +386,7 @@ class Game:
def handle_block_change(self, packet):
if packet.block_state_id == blocks.SOUL_TORCH:
try:
self.g.goal = Point3D((packet.location[0], packet.location[1], packet.location[2]))
self.g.goal = vector.Point3D((packet.location[0], packet.location[1], packet.location[2]))
print('new waypoint:', self.g.goal)
start = time.time()
@@ -414,7 +413,7 @@ class Game:
def handle_position_and_look(self, packet):
print(packet)
p = Point3D((packet.x, packet.y, packet.z))
p = vector.Point3D((packet.x, packet.y, packet.z))
self.g.pos = p
confirm_packet = serverbound.play.TeleportConfirmPacket()