Skip to content

Commit 4e7ed8e

Browse files
committed
Update Protocol.java packet ids to Minecraft Snapshot 20w12a!
1 parent f672daa commit 4e7ed8e

File tree

1 file changed

+42
-2
lines changed

1 file changed

+42
-2
lines changed

Waterfall-Proxy-Patches/0003-Minecraft-1.16-Support.patch

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 1e198f819634712bef38f56906a2916d86f3b784 Mon Sep 17 00:00:00 2001
1+
From 54dbe2548fcefd9a7aa9149159d93d6fe8675e14 Mon Sep 17 00:00:00 2001
22
From: Justsnoopy30 <everettallen30@gmail.com>
33
Date: Sun, 16 Feb 2020 16:45:16 -0600
44
Subject: [PATCH] Minecraft 1.16 Support
@@ -338,7 +338,7 @@ index 0c51b315..53f48f3f 100644
338338

339339
<name>HyperFall-Protocol</name>
340340
diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
341-
index aa1515f4..5e1399a6 100644
341+
index aa1515f4..7684e514 100644
342342
--- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
343343
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
344344
@@ -105,6 +105,7 @@ public enum Protocol
@@ -349,6 +349,46 @@ index aa1515f4..5e1399a6 100644
349349
);
350350
// Waterfall start
351351
TO_CLIENT.registerPacket(
352+
@@ -158,7 +159,8 @@ public enum Protocol
353+
map( ProtocolConstants.MINECRAFT_1_12_1, 0x42 ),
354+
map( ProtocolConstants.MINECRAFT_1_13, 0x45 ),
355+
map( ProtocolConstants.MINECRAFT_1_14, 0x49 ),
356+
- map( ProtocolConstants.MINECRAFT_1_15, 0x4A )
357+
+ map( ProtocolConstants.MINECRAFT_1_15, 0x4A ),
358+
+ map( ProtocolConstants.MINECRAFT_1_15, 0x4B )
359+
);
360+
TO_CLIENT.registerPacket(
361+
ScoreboardScore.class,
362+
@@ -169,7 +171,8 @@ public enum Protocol
363+
map( ProtocolConstants.MINECRAFT_1_12_1, 0x45 ),
364+
map( ProtocolConstants.MINECRAFT_1_13, 0x48 ),
365+
map( ProtocolConstants.MINECRAFT_1_14, 0x4C ),
366+
- map( ProtocolConstants.MINECRAFT_1_15, 0x4D )
367+
+ map( ProtocolConstants.MINECRAFT_1_15, 0x4D ),
368+
+ map( ProtocolConstants.MINECRAFT_1_16, 0x4E )
369+
);
370+
TO_CLIENT.registerPacket(
371+
ScoreboardDisplay.class,
372+
@@ -180,7 +183,8 @@ public enum Protocol
373+
map( ProtocolConstants.MINECRAFT_1_12_1, 0x3B ),
374+
map( ProtocolConstants.MINECRAFT_1_13, 0x3E ),
375+
map( ProtocolConstants.MINECRAFT_1_14, 0x42 ),
376+
- map( ProtocolConstants.MINECRAFT_1_15, 0x43 )
377+
+ map( ProtocolConstants.MINECRAFT_1_15, 0x43 ),
378+
+ map( ProtocolConstants.MINECRAFT_1_16, 0x44 )
379+
);
380+
TO_CLIENT.registerPacket(
381+
Team.class,
382+
@@ -191,7 +195,8 @@ public enum Protocol
383+
map( ProtocolConstants.MINECRAFT_1_12_1, 0x44 ),
384+
map( ProtocolConstants.MINECRAFT_1_13, 0x47 ),
385+
map( ProtocolConstants.MINECRAFT_1_14, 0x4B ),
386+
- map( ProtocolConstants.MINECRAFT_1_15, 0x4C )
387+
+ map( ProtocolConstants.MINECRAFT_1_15, 0x4C ),
388+
+ map( ProtocolConstants.MINECRAFT_1_16, 0x4D )
389+
);
390+
TO_CLIENT.registerPacket(
391+
PluginMessage.class,
352392
diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java
353393
index cd987c8a..9fa666a2 100644
354394
--- a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java

0 commit comments

Comments
 (0)