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

This commit is contained in:
TheSnoozer authored and joo committed 2017-08-09 16:33:41 +01:00
1 parent ab71aeeb7d
commit 0c64623696
1 file changed
+4 -3
+4 -3
View File
@@ -8,8 +8,9 @@ from minecraft import authentication
from minecraft.exceptions import YggdrasilError from minecraft.exceptions import YggdrasilError
from minecraft.networking.connection import Connection from minecraft.networking.connection import Connection
from minecraft.networking.packets import ( from minecraft.networking.packets import (
ChatMessagePacket, ChatPacket, ServerClientStatus ChatMessagePacket, ChatPacket
) )
from minecraft.networking.packets.serverbound.play import ClientStatusPacket
from minecraft.compat import input from minecraft.compat import input
@@ -81,8 +82,8 @@ def main():
text = input() text = input()
if text == "/respawn": if text == "/respawn":
print("respawning...") print("respawning...")
packet = ServerClientStatus() packet = ClientStatusPacket()
packet.action_id = ServerClientStatus.RESPAWN packet.action_id = ClientStatusPacket.RESPAWN
connection.write_packet(packet) connection.write_packet(packet)
else: else:
packet = ChatPacket() packet = ChatPacket()