Updated Upstream (BungeeCord)

Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

BungeeCord Changes:
4cccf537 Minecraft 1.15 support
This commit is contained in:
Shane Freeder 2019-12-10 22:53:39 +00:00
parent f708bf18d8
commit 3426625706
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C
7 changed files with 125 additions and 116 deletions

@ -1 +1 @@
Subproject commit 70038c91442eeba7b96ec065491f57201805beac Subproject commit 4cccf53775fc88b008e102bfd6d0cdcc7a044ac0

View File

@ -1,4 +1,4 @@
From 41a4567c85b0cb1133ce5aac8a6a14561db911d0 Mon Sep 17 00:00:00 2001 From aef15f316574d636b1fbf9a205c4406eb7279be5 Mon Sep 17 00:00:00 2001
From: Tux <write@imaginarycode.com> From: Tux <write@imaginarycode.com>
Date: Thu, 19 May 2016 19:33:31 +0200 Date: Thu, 19 May 2016 19:33:31 +0200
Subject: [PATCH] POM Changes Subject: [PATCH] POM Changes
@ -7,7 +7,7 @@ Subject: [PATCH] POM Changes
- Deploy to papermc mvn repo - Deploy to papermc mvn repo
diff --git a/api/pom.xml b/api/pom.xml diff --git a/api/pom.xml b/api/pom.xml
index 79d2d367..f0348e13 100644 index 30eef5dc..afc4e46e 100644
--- a/api/pom.xml --- a/api/pom.xml
+++ b/api/pom.xml +++ b/api/pom.xml
@@ -4,42 +4,42 @@ @@ -4,42 +4,42 @@
@ -18,7 +18,7 @@ index 79d2d367..f0348e13 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -26,7 +26,7 @@ index 79d2d367..f0348e13 100644
- <artifactId>bungeecord-api</artifactId> - <artifactId>bungeecord-api</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-api</artifactId> + <artifactId>waterfall-api</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
- <name>BungeeCord-API</name> - <name>BungeeCord-API</name>
@ -67,7 +67,7 @@ index 79d2d367..f0348e13 100644
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
diff --git a/bootstrap/pom.xml b/bootstrap/pom.xml diff --git a/bootstrap/pom.xml b/bootstrap/pom.xml
index acc6aa97..cce76af4 100644 index 9a11e65a..5e9b2ab3 100644
--- a/bootstrap/pom.xml --- a/bootstrap/pom.xml
+++ b/bootstrap/pom.xml +++ b/bootstrap/pom.xml
@@ -4,19 +4,19 @@ @@ -4,19 +4,19 @@
@ -78,7 +78,7 @@ index acc6aa97..cce76af4 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -86,7 +86,7 @@ index acc6aa97..cce76af4 100644
- <artifactId>bungeecord-bootstrap</artifactId> - <artifactId>bungeecord-bootstrap</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-bootstrap</artifactId> + <artifactId>waterfall-bootstrap</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
- <name>BungeeCord-Bootstrap</name> - <name>BungeeCord-Bootstrap</name>
@ -138,7 +138,7 @@ index 6be22739..a4516ed9 100644
return; return;
} }
diff --git a/chat/pom.xml b/chat/pom.xml diff --git a/chat/pom.xml b/chat/pom.xml
index 5f87b60d..7ad05abb 100644 index 4ca669f9..0bd76ea5 100644
--- a/chat/pom.xml --- a/chat/pom.xml
+++ b/chat/pom.xml +++ b/chat/pom.xml
@@ -4,19 +4,19 @@ @@ -4,19 +4,19 @@
@ -149,7 +149,7 @@ index 5f87b60d..7ad05abb 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -157,7 +157,7 @@ index 5f87b60d..7ad05abb 100644
- <artifactId>bungeecord-chat</artifactId> - <artifactId>bungeecord-chat</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-chat</artifactId> + <artifactId>waterfall-chat</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
- <name>BungeeCord-Chat</name> - <name>BungeeCord-Chat</name>
@ -168,7 +168,7 @@ index 5f87b60d..7ad05abb 100644
<dependencies> <dependencies>
<dependency> <dependency>
diff --git a/config/pom.xml b/config/pom.xml diff --git a/config/pom.xml b/config/pom.xml
index 83c36691..0ffb071c 100644 index 4b44d27e..764fcc6b 100644
--- a/config/pom.xml --- a/config/pom.xml
+++ b/config/pom.xml +++ b/config/pom.xml
@@ -4,19 +4,19 @@ @@ -4,19 +4,19 @@
@ -179,7 +179,7 @@ index 83c36691..0ffb071c 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -187,7 +187,7 @@ index 83c36691..0ffb071c 100644
- <artifactId>bungeecord-config</artifactId> - <artifactId>bungeecord-config</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-config</artifactId> + <artifactId>waterfall-config</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
- <name>BungeeCord-Config</name> - <name>BungeeCord-Config</name>
@ -198,7 +198,7 @@ index 83c36691..0ffb071c 100644
<dependencies> <dependencies>
<dependency> <dependency>
diff --git a/event/pom.xml b/event/pom.xml diff --git a/event/pom.xml b/event/pom.xml
index 2de6603c..d6efe097 100644 index e86d9887..5eb97c1f 100644
--- a/event/pom.xml --- a/event/pom.xml
+++ b/event/pom.xml +++ b/event/pom.xml
@@ -4,17 +4,17 @@ @@ -4,17 +4,17 @@
@ -209,7 +209,7 @@ index 2de6603c..d6efe097 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -217,7 +217,7 @@ index 2de6603c..d6efe097 100644
- <artifactId>bungeecord-event</artifactId> - <artifactId>bungeecord-event</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-event</artifactId> + <artifactId>waterfall-event</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
- <name>BungeeCord-Event</name> - <name>BungeeCord-Event</name>
@ -226,7 +226,7 @@ index 2de6603c..d6efe097 100644
+ <description>Generic java event dispatching API intended for use with Waterfall.</description> + <description>Generic java event dispatching API intended for use with Waterfall.</description>
</project> </project>
diff --git a/log/pom.xml b/log/pom.xml diff --git a/log/pom.xml b/log/pom.xml
index 05c5f2c9..fd999b51 100644 index 59beca1b..23dacb1d 100644
--- a/log/pom.xml --- a/log/pom.xml
+++ b/log/pom.xml +++ b/log/pom.xml
@@ -4,19 +4,19 @@ @@ -4,19 +4,19 @@
@ -237,7 +237,7 @@ index 05c5f2c9..fd999b51 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -245,7 +245,7 @@ index 05c5f2c9..fd999b51 100644
- <artifactId>bungeecord-log</artifactId> - <artifactId>bungeecord-log</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-log</artifactId> + <artifactId>waterfall-log</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
- <name>BungeeCord-Log</name> - <name>BungeeCord-Log</name>
@ -267,7 +267,7 @@ index 05c5f2c9..fd999b51 100644
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
diff --git a/module/cmd-alert/pom.xml b/module/cmd-alert/pom.xml diff --git a/module/cmd-alert/pom.xml b/module/cmd-alert/pom.xml
index 1c4f643f..6f3aa272 100644 index 36a7bca2..9340d58a 100644
--- a/module/cmd-alert/pom.xml --- a/module/cmd-alert/pom.xml
+++ b/module/cmd-alert/pom.xml +++ b/module/cmd-alert/pom.xml
@@ -4,14 +4,14 @@ @@ -4,14 +4,14 @@
@ -278,7 +278,7 @@ index 1c4f643f..6f3aa272 100644
- <artifactId>bungeecord-module</artifactId> - <artifactId>bungeecord-module</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module</artifactId> + <artifactId>waterfall-module</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -286,11 +286,11 @@ index 1c4f643f..6f3aa272 100644
- <artifactId>bungeecord-module-cmd-alert</artifactId> - <artifactId>bungeecord-module-cmd-alert</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module-cmd-alert</artifactId> + <artifactId>waterfall-module-cmd-alert</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
diff --git a/module/cmd-find/pom.xml b/module/cmd-find/pom.xml diff --git a/module/cmd-find/pom.xml b/module/cmd-find/pom.xml
index 3e43c9ae..01d95284 100644 index 3dc2fe1e..c7106fe9 100644
--- a/module/cmd-find/pom.xml --- a/module/cmd-find/pom.xml
+++ b/module/cmd-find/pom.xml +++ b/module/cmd-find/pom.xml
@@ -4,14 +4,14 @@ @@ -4,14 +4,14 @@
@ -301,7 +301,7 @@ index 3e43c9ae..01d95284 100644
- <artifactId>bungeecord-module</artifactId> - <artifactId>bungeecord-module</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module</artifactId> + <artifactId>waterfall-module</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -309,11 +309,11 @@ index 3e43c9ae..01d95284 100644
- <artifactId>bungeecord-module-cmd-find</artifactId> - <artifactId>bungeecord-module-cmd-find</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module-cmd-find</artifactId> + <artifactId>waterfall-module-cmd-find</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
diff --git a/module/cmd-list/pom.xml b/module/cmd-list/pom.xml diff --git a/module/cmd-list/pom.xml b/module/cmd-list/pom.xml
index 99d6da26..bc5dc210 100644 index 3077f1b7..e14d18e7 100644
--- a/module/cmd-list/pom.xml --- a/module/cmd-list/pom.xml
+++ b/module/cmd-list/pom.xml +++ b/module/cmd-list/pom.xml
@@ -4,14 +4,14 @@ @@ -4,14 +4,14 @@
@ -324,7 +324,7 @@ index 99d6da26..bc5dc210 100644
- <artifactId>bungeecord-module</artifactId> - <artifactId>bungeecord-module</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module</artifactId> + <artifactId>waterfall-module</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -332,11 +332,11 @@ index 99d6da26..bc5dc210 100644
- <artifactId>bungeecord-module-cmd-list</artifactId> - <artifactId>bungeecord-module-cmd-list</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module-cmd-list</artifactId> + <artifactId>waterfall-module-cmd-list</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
diff --git a/module/cmd-send/pom.xml b/module/cmd-send/pom.xml diff --git a/module/cmd-send/pom.xml b/module/cmd-send/pom.xml
index 4472f373..f6642175 100644 index 54cbc090..68f526b1 100644
--- a/module/cmd-send/pom.xml --- a/module/cmd-send/pom.xml
+++ b/module/cmd-send/pom.xml +++ b/module/cmd-send/pom.xml
@@ -4,14 +4,14 @@ @@ -4,14 +4,14 @@
@ -347,7 +347,7 @@ index 4472f373..f6642175 100644
- <artifactId>bungeecord-module</artifactId> - <artifactId>bungeecord-module</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module</artifactId> + <artifactId>waterfall-module</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -355,11 +355,11 @@ index 4472f373..f6642175 100644
- <artifactId>bungeecord-module-cmd-send</artifactId> - <artifactId>bungeecord-module-cmd-send</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module-cmd-send</artifactId> + <artifactId>waterfall-module-cmd-send</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
diff --git a/module/cmd-server/pom.xml b/module/cmd-server/pom.xml diff --git a/module/cmd-server/pom.xml b/module/cmd-server/pom.xml
index 9be58576..c93ab2c9 100644 index 875e8eb1..d8ebf472 100644
--- a/module/cmd-server/pom.xml --- a/module/cmd-server/pom.xml
+++ b/module/cmd-server/pom.xml +++ b/module/cmd-server/pom.xml
@@ -4,14 +4,14 @@ @@ -4,14 +4,14 @@
@ -370,7 +370,7 @@ index 9be58576..c93ab2c9 100644
- <artifactId>bungeecord-module</artifactId> - <artifactId>bungeecord-module</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module</artifactId> + <artifactId>waterfall-module</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -378,11 +378,11 @@ index 9be58576..c93ab2c9 100644
- <artifactId>bungeecord-module-cmd-server</artifactId> - <artifactId>bungeecord-module-cmd-server</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module-cmd-server</artifactId> + <artifactId>waterfall-module-cmd-server</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
diff --git a/module/pom.xml b/module/pom.xml diff --git a/module/pom.xml b/module/pom.xml
index 5255b34f..aa604f35 100644 index 7c81fe86..7b05190b 100644
--- a/module/pom.xml --- a/module/pom.xml
+++ b/module/pom.xml +++ b/module/pom.xml
@@ -4,19 +4,19 @@ @@ -4,19 +4,19 @@
@ -393,7 +393,7 @@ index 5255b34f..aa604f35 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -401,7 +401,7 @@ index 5255b34f..aa604f35 100644
- <artifactId>bungeecord-module</artifactId> - <artifactId>bungeecord-module</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module</artifactId> + <artifactId>waterfall-module</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
- <name>BungeeCord Modules</name> - <name>BungeeCord Modules</name>
@ -430,7 +430,7 @@ index 5255b34f..aa604f35 100644
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
diff --git a/module/reconnect-yaml/pom.xml b/module/reconnect-yaml/pom.xml diff --git a/module/reconnect-yaml/pom.xml b/module/reconnect-yaml/pom.xml
index c68041d3..e34bac42 100644 index a6cc954d..c29ac52f 100644
--- a/module/reconnect-yaml/pom.xml --- a/module/reconnect-yaml/pom.xml
+++ b/module/reconnect-yaml/pom.xml +++ b/module/reconnect-yaml/pom.xml
@@ -4,14 +4,14 @@ @@ -4,14 +4,14 @@
@ -441,7 +441,7 @@ index c68041d3..e34bac42 100644
- <artifactId>bungeecord-module</artifactId> - <artifactId>bungeecord-module</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module</artifactId> + <artifactId>waterfall-module</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -449,11 +449,11 @@ index c68041d3..e34bac42 100644
- <artifactId>bungeecord-module-reconnect-yaml</artifactId> - <artifactId>bungeecord-module-reconnect-yaml</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-module-reconnect-yaml</artifactId> + <artifactId>waterfall-module-reconnect-yaml</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
diff --git a/native/pom.xml b/native/pom.xml diff --git a/native/pom.xml b/native/pom.xml
index 959aae03..b5aeb99e 100644 index f11cad04..f8b549dc 100644
--- a/native/pom.xml --- a/native/pom.xml
+++ b/native/pom.xml +++ b/native/pom.xml
@@ -4,19 +4,19 @@ @@ -4,19 +4,19 @@
@ -464,7 +464,7 @@ index 959aae03..b5aeb99e 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -472,7 +472,7 @@ index 959aae03..b5aeb99e 100644
- <artifactId>bungeecord-native</artifactId> - <artifactId>bungeecord-native</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-native</artifactId> + <artifactId>waterfall-native</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
- <name>BungeeCord-Native</name> - <name>BungeeCord-Native</name>
@ -483,7 +483,7 @@ index 959aae03..b5aeb99e 100644
<dependencies> <dependencies>
<dependency> <dependency>
diff --git a/pom.xml b/pom.xml diff --git a/pom.xml b/pom.xml
index 27d46c41..537bf1a9 100644 index 8ea1f089..5d5563a0 100644
--- a/pom.xml --- a/pom.xml
+++ b/pom.xml +++ b/pom.xml
@@ -3,18 +3,25 @@ @@ -3,18 +3,25 @@
@ -501,7 +501,7 @@ index 27d46c41..537bf1a9 100644
+ +
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
- <name>BungeeCord-Parent</name> - <name>BungeeCord-Parent</name>
@ -702,7 +702,7 @@ index 27d46c41..537bf1a9 100644
+ </profiles> + </profiles>
</project> </project>
diff --git a/protocol/pom.xml b/protocol/pom.xml diff --git a/protocol/pom.xml b/protocol/pom.xml
index 61fedc71..2493fc17 100644 index e11af008..4592e2b3 100644
--- a/protocol/pom.xml --- a/protocol/pom.xml
+++ b/protocol/pom.xml +++ b/protocol/pom.xml
@@ -4,19 +4,19 @@ @@ -4,19 +4,19 @@
@ -713,7 +713,7 @@ index 61fedc71..2493fc17 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -721,7 +721,7 @@ index 61fedc71..2493fc17 100644
- <artifactId>bungeecord-protocol</artifactId> - <artifactId>bungeecord-protocol</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-protocol</artifactId> + <artifactId>waterfall-protocol</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
- <name>BungeeCord-Protocol</name> - <name>BungeeCord-Protocol</name>
@ -743,7 +743,7 @@ index 61fedc71..2493fc17 100644
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
diff --git a/proxy/pom.xml b/proxy/pom.xml diff --git a/proxy/pom.xml b/proxy/pom.xml
index c6bb8fe3..cb02928c 100644 index 97a75125..dbd4c79d 100644
--- a/proxy/pom.xml --- a/proxy/pom.xml
+++ b/proxy/pom.xml +++ b/proxy/pom.xml
@@ -4,18 +4,18 @@ @@ -4,18 +4,18 @@
@ -754,7 +754,7 @@ index c6bb8fe3..cb02928c 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -762,7 +762,7 @@ index c6bb8fe3..cb02928c 100644
- <artifactId>bungeecord-proxy</artifactId> - <artifactId>bungeecord-proxy</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-proxy</artifactId> + <artifactId>waterfall-proxy</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
- <name>BungeeCord-Proxy</name> - <name>BungeeCord-Proxy</name>
@ -814,7 +814,7 @@ index c6bb8fe3..cb02928c 100644
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
diff --git a/query/pom.xml b/query/pom.xml diff --git a/query/pom.xml b/query/pom.xml
index 9cc2f80b..1fd54029 100644 index 9c7d6f5a..c3a29122 100644
--- a/query/pom.xml --- a/query/pom.xml
+++ b/query/pom.xml +++ b/query/pom.xml
@@ -4,19 +4,19 @@ @@ -4,19 +4,19 @@
@ -825,7 +825,7 @@ index 9cc2f80b..1fd54029 100644
- <artifactId>bungeecord-parent</artifactId> - <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId> + <artifactId>waterfall-parent</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@ -833,7 +833,7 @@ index 9cc2f80b..1fd54029 100644
- <artifactId>bungeecord-query</artifactId> - <artifactId>bungeecord-query</artifactId>
+ <groupId>io.github.waterfallmc</groupId> + <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-query</artifactId> + <artifactId>waterfall-query</artifactId>
<version>1.14-SNAPSHOT</version> <version>1.15-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
- <name>BungeeCord-Query</name> - <name>BungeeCord-Query</name>

View File

@ -1,15 +1,15 @@
From f0277f104391f8616bad88a7e50ce9c740ea00c1 Mon Sep 17 00:00:00 2001 From b6ece22debc4e9d518606f51d3fc8d65606632f5 Mon Sep 17 00:00:00 2001
From: Troy Frew <fuzzy_bot@arenaga.me> From: Troy Frew <fuzzy_bot@arenaga.me>
Date: Tue, 15 Nov 2016 09:07:51 -0500 Date: Tue, 15 Nov 2016 09:07:51 -0500
Subject: [PATCH] Fixup ProtocolConstants Subject: [PATCH] Fixup ProtocolConstants
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 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
index 5d0a3f65..ff1f28aa 100644 index 4ba561a4..c34f6fa2 100644
--- a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java --- a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java
@@ -56,6 +56,16 @@ public class ProtocolConstants @@ -59,6 +59,16 @@ public class ProtocolConstants
ProtocolConstants.MINECRAFT_1_14_4 ProtocolConstants.MINECRAFT_1_15
); );
+ public static final boolean isBeforeOrEq(int before, int other) + public static final boolean isBeforeOrEq(int before, int other)
@ -26,5 +26,5 @@ index 5d0a3f65..ff1f28aa 100644
{ {
-- --
2.21.0 (Apple Git-120) 2.24.0

View File

@ -1,4 +1,4 @@
From 711534132b55ac51ac7522e17415ad181110282c Mon Sep 17 00:00:00 2001 From 6559583460588cb30d956d9db8eae834eb2a9ef5 Mon Sep 17 00:00:00 2001
From: Techcable <Techcable@techcable.net> From: Techcable <Techcable@techcable.net>
Date: Thu, 19 May 2016 17:09:22 -0600 Date: Thu, 19 May 2016 17:09:22 -0600
Subject: [PATCH] Allow invalid packet ids for forge servers Subject: [PATCH] Allow invalid packet ids for forge servers
@ -37,10 +37,10 @@ index ea44573d..5b32effe 100644
{ {
packet.read( in, prot.getDirection(), protocolVersion ); packet.read( in, prot.getDirection(), protocolVersion );
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 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
index 0e6cac95..d599eef3 100644 index 8c99ee85..31cbaa53 100644
--- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java --- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
@@ -392,14 +392,23 @@ public enum Protocol @@ -410,14 +410,23 @@ public enum Protocol
return protocol; return protocol;
} }
@ -66,7 +66,7 @@ index 0e6cac95..d599eef3 100644
throw new BadPacketException( "Packet with id " + id + " outside of range " ); throw new BadPacketException( "Packet with id " + id + " outside of range " );
} }
diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
index ac54ff74..e32a06c2 100644 index cf397206..8cdd3f98 100644
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
@@ -31,7 +31,9 @@ import net.md_5.bungee.forge.ForgeUtils; @@ -31,7 +31,9 @@ import net.md_5.bungee.forge.ForgeUtils;
@ -105,10 +105,10 @@ index e5a63541..644522b1 100644
@Getter @Getter
@NonNull @NonNull
diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java
index 3b469ab9..bd2bea7c 100644 index ff59c824..298a99be 100644
--- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java --- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java
+++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java +++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java
@@ -315,6 +315,12 @@ public abstract class EntityMap @@ -317,6 +317,12 @@ public abstract class EntityMap
int packetId = DefinedPacket.readVarInt( packet ); int packetId = DefinedPacket.readVarInt( packet );
int packetIdLength = packet.readerIndex() - readerIndex; int packetIdLength = packet.readerIndex() - readerIndex;
@ -122,5 +122,5 @@ index 3b469ab9..bd2bea7c 100644
{ {
rewriteInt( packet, oldId, newId, readerIndex + packetIdLength ); rewriteInt( packet, oldId, newId, readerIndex + packetIdLength );
-- --
2.21.0 (Apple Git-120) 2.24.0

View File

@ -1,4 +1,4 @@
From 98c28b0323fc82e0b66defb47898c1bf7d8abacd Mon Sep 17 00:00:00 2001 From 87d20245a793e386d85bfcf181701da0d9847d18 Mon Sep 17 00:00:00 2001
From: Aaron Hill <aa1ronham@gmail.com> From: Aaron Hill <aa1ronham@gmail.com>
Date: Thu, 15 Sep 2016 22:38:37 +0200 Date: Thu, 15 Sep 2016 22:38:37 +0200
Subject: [PATCH] Fix potion race condition on Forge 1.8.9 Subject: [PATCH] Fix potion race condition on Forge 1.8.9
@ -33,7 +33,7 @@ index 39e257c3..e4f14974 100644
+ // Waterfall end + // Waterfall end
} }
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 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
index d599eef3..87093807 100644 index 31cbaa53..3556eda0 100644
--- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java --- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
@@ -16,6 +16,8 @@ import net.md_5.bungee.protocol.packet.Commands; @@ -16,6 +16,8 @@ import net.md_5.bungee.protocol.packet.Commands;
@ -45,9 +45,9 @@ index d599eef3..87093807 100644
import net.md_5.bungee.protocol.packet.Handshake; import net.md_5.bungee.protocol.packet.Handshake;
import net.md_5.bungee.protocol.packet.KeepAlive; import net.md_5.bungee.protocol.packet.KeepAlive;
import net.md_5.bungee.protocol.packet.Kick; import net.md_5.bungee.protocol.packet.Kick;
@@ -92,6 +94,27 @@ public enum Protocol @@ -97,6 +99,29 @@ public enum Protocol
BossBar.class, map( ProtocolConstants.MINECRAFT_1_9, 0x0C ),
map( ProtocolConstants.MINECRAFT_1_9, 0x0C ) map( ProtocolConstants.MINECRAFT_1_15, 0x0D )
); );
+ // Waterfall start + // Waterfall start
+ TO_CLIENT.registerPacket( + TO_CLIENT.registerPacket(
@ -58,7 +58,8 @@ index d599eef3..87093807 100644
+ map(ProtocolConstants.MINECRAFT_1_12, 0x4E), + map(ProtocolConstants.MINECRAFT_1_12, 0x4E),
+ map(ProtocolConstants.MINECRAFT_1_12_1, 0x4F), + map(ProtocolConstants.MINECRAFT_1_12_1, 0x4F),
+ map(ProtocolConstants.MINECRAFT_1_13, 0x53), + map(ProtocolConstants.MINECRAFT_1_13, 0x53),
+ map(ProtocolConstants.MINECRAFT_1_14, 0x59) + map(ProtocolConstants.MINECRAFT_1_14, 0x59),
+ map(ProtocolConstants.MINECRAFT_1_15, 0x5A)
+ ); + );
+ TO_CLIENT.registerPacket( + TO_CLIENT.registerPacket(
+ EntityRemoveEffect.class, + EntityRemoveEffect.class,
@ -67,7 +68,8 @@ index d599eef3..87093807 100644
+ map(ProtocolConstants.MINECRAFT_1_12, 0x32), + map(ProtocolConstants.MINECRAFT_1_12, 0x32),
+ map(ProtocolConstants.MINECRAFT_1_12_1, 0x33), + map(ProtocolConstants.MINECRAFT_1_12_1, 0x33),
+ map(ProtocolConstants.MINECRAFT_1_13, 0x36), + map(ProtocolConstants.MINECRAFT_1_13, 0x36),
+ map(ProtocolConstants.MINECRAFT_1_14, 0x38) + map(ProtocolConstants.MINECRAFT_1_14, 0x38),
+ map(ProtocolConstants.MINECRAFT_1_15, 0x39)
+ ); + );
+ // Waterfall end + // Waterfall end
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(

View File

@ -1,4 +1,4 @@
From 0e88d1a3be4a4d500bf6ce78100a066252ded0b0 Mon Sep 17 00:00:00 2001 From 0eba7da12fc8c161aa50d07bfcd616a8acbede73 Mon Sep 17 00:00:00 2001
From: Shane Freeder <theboyetronic@gmail.com> From: Shane Freeder <theboyetronic@gmail.com>
Date: Mon, 14 Jan 2019 03:35:21 +0000 Date: Mon, 14 Jan 2019 03:35:21 +0000
Subject: [PATCH] Provide an option to disable entity metadata rewriting Subject: [PATCH] Provide an option to disable entity metadata rewriting
@ -57,7 +57,7 @@ index 4ff8da6d..e860214f 100644
+ } + }
} }
diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
index c2b1de82..72f487dc 100644 index 7aa792a2..00cd477f 100644
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
@@ -226,7 +226,7 @@ public class ServerConnector extends PacketHandler @@ -226,7 +226,7 @@ public class ServerConnector extends PacketHandler
@ -85,17 +85,18 @@ index c2b1de82..72f487dc 100644
serverScoreboard.clear(); serverScoreboard.clear();
for ( UUID bossbar : user.getSentBossBars() ) for ( UUID bossbar : user.getSentBossBars() )
@@ -285,12 +287,32 @@ public class ServerConnector extends PacketHandler @@ -285,12 +287,33 @@ public class ServerConnector extends PacketHandler
user.unsafe().sendPacket( new EntityStatus( user.getClientEntityId(), login.isReducedDebugInfo() ? EntityStatus.DEBUG_INFO_REDUCED : EntityStatus.DEBUG_INFO_NORMAL ) ); user.unsafe().sendPacket( new EntityStatus( user.getClientEntityId(), login.isReducedDebugInfo() ? EntityStatus.DEBUG_INFO_REDUCED : EntityStatus.DEBUG_INFO_NORMAL ) );
user.setDimensionChange( true ); user.setDimensionChange( true );
- if ( login.getDimension() == user.getDimension() ) - if ( login.getDimension() == user.getDimension() )
+ if ( !user.isDisableEntityMetadataRewrite() && login.getDimension() == user.getDimension() ) // Waterfall - defer + if ( !user.isDisableEntityMetadataRewrite() && login.getDimension() == user.getDimension() ) // Waterfall - defer
{ {
user.unsafe().sendPacket( new Respawn( ( login.getDimension() >= 0 ? -1 : 0 ), login.getDifficulty(), login.getGameMode(), login.getLevelType() ) ); user.unsafe().sendPacket( new Respawn( ( login.getDimension() >= 0 ? -1 : 0 ), login.getSeed(), login.getDifficulty(), login.getGameMode(), login.getLevelType() ) );
} }
user.setServerEntityId( login.getEntityId() ); user.setServerEntityId( login.getEntityId() );
+
+ // Waterfall start + // Waterfall start
+ if ( user.isDisableEntityMetadataRewrite() ) { + if ( user.isDisableEntityMetadataRewrite() ) {
+ // Ensure that we maintain consistency + // Ensure that we maintain consistency
@ -103,20 +104,20 @@ index c2b1de82..72f487dc 100644
+ +
+ // Only send if we are not in the same dimension + // Only send if we are not in the same dimension
+ if (user.getDimension() != login.getDimension()) { + if (user.getDimension() != login.getDimension()) {
+ user.unsafe().sendPacket( new Respawn(user.getDimension() == 0 ? -1 : 0, login.getDifficulty(), login.getGameMode(), login.getLevelType())); + user.unsafe().sendPacket( new Respawn(user.getDimension() == 0 ? -1 : 0, login.getSeed(), login.getDifficulty(), login.getGameMode(), login.getLevelType()));
+ } + }
+ +
+ Login modLogin = new Login( login.getEntityId(),login.getGameMode(), login.getDimension(), + Login modLogin = new Login( login.getEntityId(),login.getGameMode(), login.getDimension(), login.getSeed(),
+ login.getDifficulty(), login.getMaxPlayers(), login.getLevelType(), login.getViewDistance(), login.isReducedDebugInfo() ); + login.getDifficulty(), login.getMaxPlayers(), login.getLevelType(), login.getViewDistance(), login.isReducedDebugInfo(), login.isNormalRespawn() );
+ user.unsafe().sendPacket(modLogin); + user.unsafe().sendPacket(modLogin);
+ +
+ // Only send if we're in the same dimension + // Only send if we're in the same dimension
+ if (user.getDimension() == login.getDimension()) { + if (user.getDimension() == login.getDimension()) {
+ user.unsafe().sendPacket( new Respawn(user.getDimension() == 0 ? -1 : 0, login.getDifficulty(), login.getGameMode(), login.getLevelType())); + user.unsafe().sendPacket( new Respawn(user.getDimension() == 0 ? -1 : 0, login.getSeed(), login.getDifficulty(), login.getGameMode(), login.getLevelType()));
+ } + }
+ } + }
+ // Waterfall end + // Waterfall end
user.unsafe().sendPacket( new Respawn( login.getDimension(), login.getDifficulty(), login.getGameMode(), login.getLevelType() ) ); user.unsafe().sendPacket( new Respawn( login.getDimension(), login.getSeed(), login.getDifficulty(), login.getGameMode(), login.getLevelType() ) );
if ( user.getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_14 ) if ( user.getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_14 )
{ {
diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java
@ -155,7 +156,7 @@ index fd14f518..fba84905 100644
} }
diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java
index bd2bea7c..324a7741 100644 index 298a99be..e5d566bd 100644
--- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java --- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java
+++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java +++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java
@@ -8,6 +8,7 @@ import io.netty.buffer.ByteBufInputStream; @@ -8,6 +8,7 @@ import io.netty.buffer.ByteBufInputStream;
@ -178,7 +179,7 @@ index bd2bea7c..324a7741 100644
switch ( version ) switch ( version )
{ {
case ProtocolConstants.MINECRAFT_1_8: case ProtocolConstants.MINECRAFT_1_8:
@@ -275,7 +281,13 @@ public abstract class EntityMap @@ -277,7 +283,13 @@ public abstract class EntityMap
DefinedPacket.readVarInt( packet ); DefinedPacket.readVarInt( packet );
break; break;
default: default:

View File

@ -1,11 +1,11 @@
From 05d153a18c69bacd5fe495a3bacd8065924bf95f Mon Sep 17 00:00:00 2001 From cc895993a4408d955ec341c456e9a9578711836e Mon Sep 17 00:00:00 2001
From: Mark Vainomaa <mikroskeem@mikroskeem.eu> From: Mark Vainomaa <mikroskeem@mikroskeem.eu>
Date: Wed, 17 Apr 2019 09:24:38 +0300 Date: Wed, 17 Apr 2019 09:24:38 +0300
Subject: [PATCH] Speed up packet construction Subject: [PATCH] Speed up packet construction
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 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
index 87093807..f55b846a 100644 index 3556eda0..44dc34ff 100644
--- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java --- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
@@ -53,6 +53,7 @@ public enum Protocol @@ -53,6 +53,7 @@ public enum Protocol
@ -24,21 +24,23 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x00 ), map( ProtocolConstants.MINECRAFT_1_8, 0x00 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x1F ), map( ProtocolConstants.MINECRAFT_1_9, 0x1F ),
map( ProtocolConstants.MINECRAFT_1_13, 0x21 ), map( ProtocolConstants.MINECRAFT_1_13, 0x21 ),
@@ -71,18 +73,21 @@ public enum Protocol @@ -72,6 +74,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
Login.class, Login.class,
+ Login::new, // Waterfall - speed up packet construction + Login::new, // Waterfall - speed up packet construction
map( ProtocolConstants.MINECRAFT_1_8, 0x01 ), map( ProtocolConstants.MINECRAFT_1_8, 0x01 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x23 ), map( ProtocolConstants.MINECRAFT_1_9, 0x23 ),
map( ProtocolConstants.MINECRAFT_1_13, 0x25 ) map( ProtocolConstants.MINECRAFT_1_13, 0x25 ),
@@ -79,6 +82,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
Chat.class, Chat.class,
+ Chat::new, // Waterfall - speed up packet construction + Chat::new, // Waterfall - speed up packet construction
map( ProtocolConstants.MINECRAFT_1_8, 0x02 ), map( ProtocolConstants.MINECRAFT_1_8, 0x02 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x0F ), map( ProtocolConstants.MINECRAFT_1_9, 0x0F ),
map( ProtocolConstants.MINECRAFT_1_13, 0x0E ) map( ProtocolConstants.MINECRAFT_1_13, 0x0E ),
@@ -86,6 +90,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
Respawn.class, Respawn.class,
@ -46,12 +48,13 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x07 ), map( ProtocolConstants.MINECRAFT_1_8, 0x07 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x33 ), map( ProtocolConstants.MINECRAFT_1_9, 0x33 ),
map( ProtocolConstants.MINECRAFT_1_12, 0x34 ), map( ProtocolConstants.MINECRAFT_1_12, 0x34 ),
@@ -92,11 +97,13 @@ public enum Protocol @@ -96,12 +101,14 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
BossBar.class, BossBar.class,
+ BossBar::new, // Waterfall - speed up packet construction + BossBar::new, // Waterfall - speed up packet construction
map( ProtocolConstants.MINECRAFT_1_9, 0x0C ) map( ProtocolConstants.MINECRAFT_1_9, 0x0C ),
map( ProtocolConstants.MINECRAFT_1_15, 0x0D )
); );
// Waterfall start // Waterfall start
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
@ -60,7 +63,7 @@ index 87093807..f55b846a 100644
map(ProtocolConstants.MINECRAFT_1_8, 0x1D), map(ProtocolConstants.MINECRAFT_1_8, 0x1D),
map(ProtocolConstants.MINECRAFT_1_9, 0x4C), map(ProtocolConstants.MINECRAFT_1_9, 0x4C),
map(ProtocolConstants.MINECRAFT_1_9_4, 0x4B), map(ProtocolConstants.MINECRAFT_1_9_4, 0x4B),
@@ -107,6 +114,7 @@ public enum Protocol @@ -113,6 +120,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
EntityRemoveEffect.class, EntityRemoveEffect.class,
@ -68,7 +71,7 @@ index 87093807..f55b846a 100644
map(ProtocolConstants.MINECRAFT_1_8, 0x1E), map(ProtocolConstants.MINECRAFT_1_8, 0x1E),
map(ProtocolConstants.MINECRAFT_1_9, 0x31), map(ProtocolConstants.MINECRAFT_1_9, 0x31),
map(ProtocolConstants.MINECRAFT_1_12, 0x32), map(ProtocolConstants.MINECRAFT_1_12, 0x32),
@@ -117,6 +125,7 @@ public enum Protocol @@ -124,6 +132,7 @@ public enum Protocol
// Waterfall end // Waterfall end
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
PlayerListItem.class, // PlayerInfo PlayerListItem.class, // PlayerInfo
@ -76,14 +79,15 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x38 ), map( ProtocolConstants.MINECRAFT_1_8, 0x38 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x2D ), map( ProtocolConstants.MINECRAFT_1_9, 0x2D ),
map( ProtocolConstants.MINECRAFT_1_12_1, 0x2E ), map( ProtocolConstants.MINECRAFT_1_12_1, 0x2E ),
@@ -125,12 +134,14 @@ public enum Protocol @@ -133,6 +142,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
TabCompleteResponse.class, TabCompleteResponse.class,
+ TabCompleteResponse::new, // Waterfall - speed up packet construction + TabCompleteResponse::new, // Waterfall - speed up packet construction
map( ProtocolConstants.MINECRAFT_1_8, 0x3A ), map( ProtocolConstants.MINECRAFT_1_8, 0x3A ),
map( ProtocolConstants.MINECRAFT_1_9, 0x0E ), map( ProtocolConstants.MINECRAFT_1_9, 0x0E ),
map( ProtocolConstants.MINECRAFT_1_13, 0x10 ) map( ProtocolConstants.MINECRAFT_1_13, 0x10 ),
@@ -140,6 +150,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
ScoreboardObjective.class, ScoreboardObjective.class,
@ -91,7 +95,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x3B ), map( ProtocolConstants.MINECRAFT_1_8, 0x3B ),
map( ProtocolConstants.MINECRAFT_1_9, 0x3F ), map( ProtocolConstants.MINECRAFT_1_9, 0x3F ),
map( ProtocolConstants.MINECRAFT_1_12, 0x41 ), map( ProtocolConstants.MINECRAFT_1_12, 0x41 ),
@@ -140,6 +151,7 @@ public enum Protocol @@ -150,6 +161,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
ScoreboardScore.class, ScoreboardScore.class,
@ -99,7 +103,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x3C ), map( ProtocolConstants.MINECRAFT_1_8, 0x3C ),
map( ProtocolConstants.MINECRAFT_1_9, 0x42 ), map( ProtocolConstants.MINECRAFT_1_9, 0x42 ),
map( ProtocolConstants.MINECRAFT_1_12, 0x44 ), map( ProtocolConstants.MINECRAFT_1_12, 0x44 ),
@@ -149,6 +161,7 @@ public enum Protocol @@ -160,6 +172,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
ScoreboardDisplay.class, ScoreboardDisplay.class,
@ -107,7 +111,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x3D ), map( ProtocolConstants.MINECRAFT_1_8, 0x3D ),
map( ProtocolConstants.MINECRAFT_1_9, 0x38 ), map( ProtocolConstants.MINECRAFT_1_9, 0x38 ),
map( ProtocolConstants.MINECRAFT_1_12, 0x3A ), map( ProtocolConstants.MINECRAFT_1_12, 0x3A ),
@@ -158,6 +171,7 @@ public enum Protocol @@ -170,6 +183,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
Team.class, Team.class,
@ -115,7 +119,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x3E ), map( ProtocolConstants.MINECRAFT_1_8, 0x3E ),
map( ProtocolConstants.MINECRAFT_1_9, 0x41 ), map( ProtocolConstants.MINECRAFT_1_9, 0x41 ),
map( ProtocolConstants.MINECRAFT_1_12, 0x43 ), map( ProtocolConstants.MINECRAFT_1_12, 0x43 ),
@@ -167,6 +181,7 @@ public enum Protocol @@ -180,6 +194,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
PluginMessage.class, PluginMessage.class,
@ -123,7 +127,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x3F ), map( ProtocolConstants.MINECRAFT_1_8, 0x3F ),
map( ProtocolConstants.MINECRAFT_1_9, 0x18 ), map( ProtocolConstants.MINECRAFT_1_9, 0x18 ),
map( ProtocolConstants.MINECRAFT_1_13, 0x19 ), map( ProtocolConstants.MINECRAFT_1_13, 0x19 ),
@@ -174,6 +189,7 @@ public enum Protocol @@ -188,6 +203,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
Kick.class, Kick.class,
@ -131,7 +135,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x40 ), map( ProtocolConstants.MINECRAFT_1_8, 0x40 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x1A ), map( ProtocolConstants.MINECRAFT_1_9, 0x1A ),
map( ProtocolConstants.MINECRAFT_1_13, 0x1B ), map( ProtocolConstants.MINECRAFT_1_13, 0x1B ),
@@ -181,6 +197,7 @@ public enum Protocol @@ -196,6 +212,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
Title.class, Title.class,
@ -139,7 +143,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x45 ), map( ProtocolConstants.MINECRAFT_1_8, 0x45 ),
map( ProtocolConstants.MINECRAFT_1_12, 0x47 ), map( ProtocolConstants.MINECRAFT_1_12, 0x47 ),
map( ProtocolConstants.MINECRAFT_1_12_1, 0x48 ), map( ProtocolConstants.MINECRAFT_1_12_1, 0x48 ),
@@ -189,6 +206,7 @@ public enum Protocol @@ -205,6 +222,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
PlayerListHeaderFooter.class, PlayerListHeaderFooter.class,
@ -147,7 +151,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x47 ), map( ProtocolConstants.MINECRAFT_1_8, 0x47 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x48 ), map( ProtocolConstants.MINECRAFT_1_9, 0x48 ),
map( ProtocolConstants.MINECRAFT_1_9_4, 0x47 ), map( ProtocolConstants.MINECRAFT_1_9_4, 0x47 ),
@@ -199,6 +217,7 @@ public enum Protocol @@ -216,6 +234,7 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
EntityStatus.class, EntityStatus.class,
@ -155,17 +159,19 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x1A ), map( ProtocolConstants.MINECRAFT_1_8, 0x1A ),
map( ProtocolConstants.MINECRAFT_1_9, 0x1B ), map( ProtocolConstants.MINECRAFT_1_9, 0x1B ),
map( ProtocolConstants.MINECRAFT_1_13, 0x1C ), map( ProtocolConstants.MINECRAFT_1_13, 0x1C ),
@@ -206,15 +225,18 @@ public enum Protocol @@ -224,17 +243,20 @@ public enum Protocol
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
Commands.class, Commands.class,
+ Commands::new, // Waterfall - speed up packet construction + Commands::new, // Waterfall - speed up packet construction
map( ProtocolConstants.MINECRAFT_1_13, 0x11 ) map( ProtocolConstants.MINECRAFT_1_13, 0x11 ),
map( ProtocolConstants.MINECRAFT_1_15, 0x12 )
); );
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
ViewDistance.class, ViewDistance.class,
+ ViewDistance::new, // Waterfall - speed up packet construction + ViewDistance::new, // Waterfall - speed up packet construction
map( ProtocolConstants.MINECRAFT_1_14, 0x41 ) map( ProtocolConstants.MINECRAFT_1_14, 0x41 ),
map( ProtocolConstants.MINECRAFT_1_15, 0x42 )
); );
TO_SERVER.registerPacket( TO_SERVER.registerPacket(
@ -174,7 +180,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x00 ), map( ProtocolConstants.MINECRAFT_1_8, 0x00 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x0B ), map( ProtocolConstants.MINECRAFT_1_9, 0x0B ),
map( ProtocolConstants.MINECRAFT_1_12, 0x0C ), map( ProtocolConstants.MINECRAFT_1_12, 0x0C ),
@@ -224,6 +246,7 @@ public enum Protocol @@ -244,6 +266,7 @@ public enum Protocol
); );
TO_SERVER.registerPacket( TO_SERVER.registerPacket(
Chat.class, Chat.class,
@ -182,7 +188,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x01 ), map( ProtocolConstants.MINECRAFT_1_8, 0x01 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x02 ), map( ProtocolConstants.MINECRAFT_1_9, 0x02 ),
map( ProtocolConstants.MINECRAFT_1_12, 0x03 ), map( ProtocolConstants.MINECRAFT_1_12, 0x03 ),
@@ -232,6 +255,7 @@ public enum Protocol @@ -252,6 +275,7 @@ public enum Protocol
); );
TO_SERVER.registerPacket( TO_SERVER.registerPacket(
TabCompleteRequest.class, TabCompleteRequest.class,
@ -190,7 +196,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x14 ), map( ProtocolConstants.MINECRAFT_1_8, 0x14 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x01 ), map( ProtocolConstants.MINECRAFT_1_9, 0x01 ),
map( ProtocolConstants.MINECRAFT_1_12, 0x02 ), map( ProtocolConstants.MINECRAFT_1_12, 0x02 ),
@@ -241,6 +265,7 @@ public enum Protocol @@ -261,6 +285,7 @@ public enum Protocol
); );
TO_SERVER.registerPacket( TO_SERVER.registerPacket(
ClientSettings.class, ClientSettings.class,
@ -198,7 +204,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x15 ), map( ProtocolConstants.MINECRAFT_1_8, 0x15 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x04 ), map( ProtocolConstants.MINECRAFT_1_9, 0x04 ),
map( ProtocolConstants.MINECRAFT_1_12, 0x05 ), map( ProtocolConstants.MINECRAFT_1_12, 0x05 ),
@@ -249,6 +274,7 @@ public enum Protocol @@ -269,6 +294,7 @@ public enum Protocol
); );
TO_SERVER.registerPacket( TO_SERVER.registerPacket(
PluginMessage.class, PluginMessage.class,
@ -206,7 +212,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x17 ), map( ProtocolConstants.MINECRAFT_1_8, 0x17 ),
map( ProtocolConstants.MINECRAFT_1_9, 0x09 ), map( ProtocolConstants.MINECRAFT_1_9, 0x09 ),
map( ProtocolConstants.MINECRAFT_1_12, 0x0A ), map( ProtocolConstants.MINECRAFT_1_12, 0x0A ),
@@ -265,19 +291,23 @@ public enum Protocol @@ -285,19 +311,23 @@ public enum Protocol
{ {
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
StatusResponse.class, StatusResponse.class,
@ -230,7 +236,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_8, 0x01 ) map( ProtocolConstants.MINECRAFT_1_8, 0x01 )
); );
} }
@@ -289,35 +319,43 @@ public enum Protocol @@ -309,35 +339,43 @@ public enum Protocol
{ {
TO_CLIENT.registerPacket( TO_CLIENT.registerPacket(
Kick.class, Kick.class,
@ -274,7 +280,7 @@ index 87093807..f55b846a 100644
map( ProtocolConstants.MINECRAFT_1_13, 0x02 ) map( ProtocolConstants.MINECRAFT_1_13, 0x02 )
); );
} }
@@ -368,7 +406,7 @@ public enum Protocol @@ -388,7 +426,7 @@ public enum Protocol
private final int protocolVersion; private final int protocolVersion;
private final TObjectIntMap<Class<? extends DefinedPacket>> packetMap = new TObjectIntHashMap<>( MAX_PACKET_ID ); private final TObjectIntMap<Class<? extends DefinedPacket>> packetMap = new TObjectIntHashMap<>( MAX_PACKET_ID );
@ -283,7 +289,7 @@ index 87093807..f55b846a 100644
} }
@Data @Data
@@ -436,21 +474,24 @@ public enum Protocol @@ -456,21 +494,24 @@ public enum Protocol
throw new BadPacketException( "Packet with id " + id + " outside of range " ); throw new BadPacketException( "Packet with id " + id + " outside of range " );
} }
@ -312,7 +318,7 @@ index 87093807..f55b846a 100644
int mappingIndex = 0; int mappingIndex = 0;
ProtocolMapping mapping = mappings[mappingIndex]; ProtocolMapping mapping = mappings[mappingIndex];
@@ -479,11 +520,32 @@ public enum Protocol @@ -499,11 +540,32 @@ public enum Protocol
data.packetMap.put( packetClass, mapping.packetID ); data.packetMap.put( packetClass, mapping.packetID );
data.packetConstructors[mapping.packetID] = constructor; data.packetConstructors[mapping.packetID] = constructor;
} }