1
- From 7fce11ad418dcf9a1258cb974a8d1acf993f0389 Mon Sep 17 00:00:00 2001
1
+ From 9552e5b776892a7c478b55d47fac8092a139ae78 Mon Sep 17 00:00:00 2001
2
2
From: Justsnoopy30 <everettallen30@gmail.com>
3
3
Date: Sun, 16 Feb 2020 16:45:16 -0600
4
4
Subject: [PATCH] Minecraft 1.16 Support
@@ -434,7 +434,7 @@ index 1b0e4474..bdc5cc98 100644
434
434
435
435
private static void registerDummy(String name)
436
436
diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginSuccess.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginSuccess.java
437
- index 2aa5ad58..697a740e 100644
437
+ index 2aa5ad58..ff986fe0 100644
438
438
--- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginSuccess.java
439
439
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginSuccess.java
440
440
@@ -7,6 +7,9 @@ import lombok.EqualsAndHashCode;
@@ -447,13 +447,12 @@ index 2aa5ad58..697a740e 100644
447
447
448
448
@Data
449
449
@NoArgsConstructor
450
- @@ -17,18 +20,62 @@ public class LoginSuccess extends DefinedPacket
450
+ @@ -17,18 +20,60 @@ public class LoginSuccess extends DefinedPacket
451
451
452
452
private String uuid;
453
453
private String username;
454
454
+ private int protocolVersion;
455
455
+
456
- + @Override
457
456
+ public void read0(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion){
458
457
+ this.protocolVersion = protocolVersion;
459
458
+ read(buf);
@@ -471,7 +470,6 @@ index 2aa5ad58..697a740e 100644
471
470
+ write(buf);
472
471
+ }
473
472
+
474
- + @Override
475
473
+ public void write0(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion){
476
474
+ this.protocolVersion = protocolVersion;
477
475
+ write(buf);
@@ -512,7 +510,7 @@ index 2aa5ad58..697a740e 100644
512
510
writeString( username, buf );
513
511
}
514
512
515
- @@ -37,4 +84 ,17 @@ public class LoginSuccess extends DefinedPacket
513
+ @@ -37,4 +82 ,17 @@ public class LoginSuccess extends DefinedPacket
516
514
{
517
515
handler.handle( this );
518
516
}
0 commit comments