From 0c64623696dea75afdafb37506958d915b6b1e13 Mon Sep 17 00:00:00 2001 From: TheSnoozer Date: Tue, 8 Aug 2017 20:27:40 +0200 Subject: [PATCH] fix wrong import; note we don't need to consider legacy import inside the packets module since this packet just got added before the structure changed --- start.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/start.py b/start.py index 2437af4..6345db6 100755 --- a/start.py +++ b/start.py @@ -8,8 +8,9 @@ from minecraft import authentication from minecraft.exceptions import YggdrasilError from minecraft.networking.connection import Connection from minecraft.networking.packets import ( - ChatMessagePacket, ChatPacket, ServerClientStatus + ChatMessagePacket, ChatPacket ) +from minecraft.networking.packets.serverbound.play import ClientStatusPacket from minecraft.compat import input @@ -81,8 +82,8 @@ def main(): text = input() if text == "/respawn": print("respawning...") - packet = ServerClientStatus() - packet.action_id = ServerClientStatus.RESPAWN + packet = ClientStatusPacket() + packet.action_id = ClientStatusPacket.RESPAWN connection.write_packet(packet) else: packet = ChatPacket()