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(
|
||||
self.connection.file_object, decryptor)
|
||||
|
||||
'''
|
||||
if packet.packet_name == "disconnect":
|
||||
print(packet.json_data) # TODO: handle propagating this back
|
||||
'''
|
||||
|
||||
if packet.packet_name == "login success":
|
||||
self.connection.reactor = PlayingReactor(self.connection)
|
||||
@@ -317,9 +319,10 @@ class PlayingReactor(PacketReactor):
|
||||
self.connection.write_packet(position_response)
|
||||
self.connection.spawned = True
|
||||
|
||||
'''
|
||||
if packet.packet_name == "disconnect":
|
||||
print(packet.json_data) # TODO: handle propagating this back
|
||||
|
||||
'''
|
||||
|
||||
class StatusReactor(PacketReactor):
|
||||
clientbound_packets = packets.STATE_STATUS_CLIENTBOUND
|
||||
|
||||
Reference in new issue
Block a user