Skip to content

Commit

Permalink
v0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Feb 6, 2025
1 parent 4d4874c commit 92003f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions loginproxy/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,12 +864,12 @@ def handle_login_packet_s2c(c: Conn, reader: PacketReader, event_dispatcher, can
return
c.kick('minecraft server enabled authorization, please disable first')
elif reader.id == 0x02: # Login Success
cancel()
debug('Login success', c)
c._server_status = ConnStatus.PLAY
if c.client_status == ConnStatus.PLAY:
event_dispatcher(ON_POSTLOGIN, (c, ), on_executor_thread=False)
if 'client_verify_token' in c._custom_data:
cancel()
return
if 'uuid' in c._custom_data:
buf = PacketBuffer()
Expand All @@ -887,7 +887,8 @@ def handle_login_packet_s2c(c: Conn, reader: PacketReader, event_dispatcher, can
if has_sig:
buf.write_string(prop['signature'])
c.send_client(buf.data)
cancel()
else:
c.send_client(reader.data)
c._client_status = ConnStatus.PLAY
if c.server_status == ConnStatus.PLAY:
event_dispatcher(ON_POSTLOGIN, (c, ), on_executor_thread=False)
Expand Down
2 changes: 1 addition & 1 deletion mcdreforged.plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "loginproxy",
"version": "0.7.2",
"version": "0.7.3",
"name": "LoginProxy",
"description": {
"en_us": "A Minecraft login proxy Plugin",
Expand Down

0 comments on commit 92003f4

Please sign in to comment.