Comment out disconnect messages generated by stubs in connection.py.
This commit is contained in:
1 parent
6797a59a70
commit
fe66e09dc4
1 file changed
+4
-1
@@ -281,8 +281,10 @@ class LoginReactor(PacketReactor):
|
|||||||
encryption.EncryptedFileObjectWrapper(
|
encryption.EncryptedFileObjectWrapper(
|
||||||
self.connection.file_object, decryptor)
|
self.connection.file_object, decryptor)
|
||||||
|
|
||||||
|
'''
|
||||||
if packet.packet_name == "disconnect":
|
if packet.packet_name == "disconnect":
|
||||||
print(packet.json_data) # TODO: handle propagating this back
|
print(packet.json_data) # TODO: handle propagating this back
|
||||||
|
'''
|
||||||
|
|
||||||
if packet.packet_name == "login success":
|
if packet.packet_name == "login success":
|
||||||
self.connection.reactor = PlayingReactor(self.connection)
|
self.connection.reactor = PlayingReactor(self.connection)
|
||||||
@@ -317,9 +319,10 @@ class PlayingReactor(PacketReactor):
|
|||||||
self.connection.write_packet(position_response)
|
self.connection.write_packet(position_response)
|
||||||
self.connection.spawned = True
|
self.connection.spawned = True
|
||||||
|
|
||||||
|
'''
|
||||||
if packet.packet_name == "disconnect":
|
if packet.packet_name == "disconnect":
|
||||||
print(packet.json_data) # TODO: handle propagating this back
|
print(packet.json_data) # TODO: handle propagating this back
|
||||||
|
'''
|
||||||
|
|
||||||
class StatusReactor(PacketReactor):
|
class StatusReactor(PacketReactor):
|
||||||
clientbound_packets = packets.STATE_STATUS_CLIENTBOUND
|
clientbound_packets = packets.STATE_STATUS_CLIENTBOUND
|
||||||
|
|||||||
Reference in new issue
Block a user