-
-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Upstream (BungeeCord) (#834)
Upstream has released updates that appear 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: 8ce7a7f8 Minecraft 1.20.3 support e1462ccd Minecraft 1.20.3-rc1 support 70f346c1 Fix extra write in ScoreboardScore packet 197bf13a Minecraft 1.20.3-pre2 support
- Loading branch information
Showing
18 changed files
with
94 additions
and
94 deletions.
There are no files selected for viewing
Submodule BungeeCord
updated
12 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
From 6420147c00011f92af85e62463d3a88048b96d32 Mon Sep 17 00:00:00 2001 | ||
From 41b5d168431b57ab75c13f908fdfec83b6081f19 Mon Sep 17 00:00:00 2001 | ||
From: Troy Frew <[email protected]> | ||
Date: Tue, 15 Nov 2016 09:07:51 -0500 | ||
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 | ||
index d92a66d9..fedf6e99 100644 | ||
index 6cb4c798..680af7d3 100644 | ||
--- a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java | ||
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java | ||
@@ -115,6 +115,16 @@ public class ProtocolConstants | ||
@@ -116,6 +116,16 @@ public class ProtocolConstants | ||
SUPPORTED_VERSION_IDS = supportedVersionIds.build(); | ||
} | ||
|
||
|
@@ -26,5 +26,5 @@ index d92a66d9..fedf6e99 100644 | |
{ | ||
|
||
-- | ||
2.42.0 | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From de632d241ae895ad859c98bf12954a4c092f3b62 Mon Sep 17 00:00:00 2001 | ||
From 27ac1313bc044e08eed698e65f5377ac69f0f31a Mon Sep 17 00:00:00 2001 | ||
From: Techcable <[email protected]> | ||
Date: Tue, 3 May 2016 20:31:52 -0700 | ||
Subject: [PATCH] Don't access a ByteBuf's underlying array | ||
|
@@ -43,10 +43,10 @@ index 70b292f0..91f71c09 100644 | |
* Allow this packet to be sent as an "extended" packet. | ||
*/ | ||
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 6d660bab..137d93cb 100644 | ||
index dc6a5a8f..d11f73fc 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
@@ -267,7 +267,7 @@ public class ServerConnector extends PacketHandler | ||
@@ -268,7 +268,7 @@ public class ServerConnector extends PacketHandler | ||
|
||
ByteBuf brand = ByteBufAllocator.DEFAULT.heapBuffer(); | ||
DefinedPacket.writeString( bungee.getName() + " (" + bungee.getVersion() + ")", brand ); | ||
|
@@ -56,10 +56,10 @@ index 6d660bab..137d93cb 100644 | |
} | ||
|
||
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
index 172cc8e5..a16c48bb 100644 | ||
index 27737d1b..b7856d92 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
@@ -300,7 +300,7 @@ public class DownstreamBridge extends PacketHandler | ||
@@ -313,7 +313,7 @@ public class DownstreamBridge extends PacketHandler | ||
|
||
brand = ByteBufAllocator.DEFAULT.heapBuffer(); | ||
DefinedPacket.writeString( bungee.getName() + " (" + bungee.getVersion() + ")" + " <- " + serverBrand, brand ); | ||
|
@@ -82,5 +82,5 @@ index 5b9c35d1..2d6885a9 100644 | |
{ | ||
@Override | ||
-- | ||
2.42.1 | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From c8ca8bce23ed4223c0830d5ab3b2bed51c755e3d Mon Sep 17 00:00:00 2001 | ||
From 2977421f05d7f1f017682147111f7274c3ba0b91 Mon Sep 17 00:00:00 2001 | ||
From: Daniel Naylor <[email protected]> | ||
Date: Tue, 25 Oct 2016 12:23:07 -0400 | ||
Subject: [PATCH] Add support for FML with IP Forwarding enabled | ||
|
@@ -12,7 +12,7 @@ However, there is now at least one Forge coremod that intends to support IP forw | |
No breaking changes occur due to this patch. | ||
|
||
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 137d93cb..ce925db2 100644 | ||
index d11f73fc..b684df7d 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
@@ -7,6 +7,7 @@ import io.netty.buffer.ByteBufAllocator; | ||
|
@@ -23,7 +23,7 @@ index 137d93cb..ce925db2 100644 | |
import java.util.Queue; | ||
import java.util.Set; | ||
import java.util.UUID; | ||
@@ -111,15 +112,39 @@ public class ServerConnector extends PacketHandler | ||
@@ -112,15 +113,39 @@ public class ServerConnector extends PacketHandler | ||
String newHost = copiedHandshake.getHost() + "\00" + AddressUtil.sanitizeAddress( user.getAddress() ) + "\00" + user.getUUID(); | ||
|
||
LoginResult profile = user.getPendingConnection().getLoginProfile(); | ||
|
@@ -101,5 +101,5 @@ index 6dca2048..f5253b89 100644 | |
* The FML 1.8 handshake token. | ||
*/ | ||
-- | ||
2.42.1 | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 899f2a62a91d604866e2a5a85378b2fe9bc30aa0 Mon Sep 17 00:00:00 2001 | ||
From b5d564124854f1fc8aedc8b5302d4c8098c6de8b Mon Sep 17 00:00:00 2001 | ||
From: Tux <[email protected]> | ||
Date: Tue, 19 Jan 2016 15:13:29 -0700 | ||
Subject: [PATCH] Micro-optimizations | ||
|
@@ -8,18 +8,18 @@ Subject: [PATCH] Micro-optimizations | |
- Don't create a data input stream for every plugin message we get from servers | ||
|
||
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
index b8248ec4..23e7b6d8 100644 | ||
index b7856d92..61ce9ed6 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
@@ -282,7 +282,6 @@ public class DownstreamBridge extends PacketHandler | ||
@@ -295,7 +295,6 @@ public class DownstreamBridge extends PacketHandler | ||
@SuppressWarnings("checkstyle:avoidnestedblocks") | ||
public void handle(PluginMessage pluginMessage) throws Exception | ||
{ | ||
- DataInput in = pluginMessage.getStream(); | ||
PluginMessageEvent event = new PluginMessageEvent( server, con, pluginMessage.getTag(), pluginMessage.getData().clone() ); | ||
|
||
if ( bungee.getPluginManager().callEvent( event ).isCancelled() ) | ||
@@ -309,6 +308,7 @@ public class DownstreamBridge extends PacketHandler | ||
@@ -322,6 +321,7 @@ public class DownstreamBridge extends PacketHandler | ||
|
||
if ( pluginMessage.getTag().equals( "BungeeCord" ) ) | ||
{ | ||
|
@@ -28,5 +28,5 @@ index b8248ec4..23e7b6d8 100644 | |
String subChannel = in.readUTF(); | ||
|
||
-- | ||
2.42.0 | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From c900fddebb1bbe7539c16204f74c9565840d4427 Mon Sep 17 00:00:00 2001 | ||
From 5bcf70b740e218893c47983c08cad7e9e6beb77c Mon Sep 17 00:00:00 2001 | ||
From: Techcable <[email protected]> | ||
Date: Thu, 19 May 2016 17:09:22 -0600 | ||
Subject: [PATCH] Allow invalid packet ids for forge servers | ||
|
@@ -37,10 +37,10 @@ index d79d5e5c..250e7620 100644 | |
{ | ||
packet.read( in, protocol, 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 | ||
index 2eeca50b..9bd62ceb 100644 | ||
index cc08447c..b55ebede 100644 | ||
--- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java | ||
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java | ||
@@ -751,14 +751,23 @@ public enum Protocol | ||
@@ -770,14 +770,23 @@ public enum Protocol | ||
return protocol; | ||
} | ||
|
||
|
@@ -66,10 +66,10 @@ index 2eeca50b..9bd62ceb 100644 | |
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 | ||
index ce925db2..6db704bd 100644 | ||
index b684df7d..4894b3ee 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
@@ -224,6 +224,12 @@ public class ServerConnector extends PacketHandler | ||
@@ -225,6 +225,12 @@ public class ServerConnector extends PacketHandler | ||
public static void handleLogin(ProxyServer bungee, ChannelWrapper ch, UserConnection user, BungeeServerInfo target, ForgeServerHandler handshakeHandler, ServerConnection server, Login login) throws Exception | ||
{ | ||
ServerConnectedEvent event = new ServerConnectedEvent( user, server ); | ||
|
@@ -100,5 +100,5 @@ index 9a47f2ec..b768d54a 100644 | |
{ | ||
rewriteInt( packet, oldId, newId, readerIndex + packetIdLength ); | ||
-- | ||
2.42.1 | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 1932cedf8e7963d4f1107147f37d4376fa716995 Mon Sep 17 00:00:00 2001 | ||
From 3709ce1b52ab1be9e6c6c228843138f44ec23b10 Mon Sep 17 00:00:00 2001 | ||
From: Janmm14 <[email protected]> | ||
Date: Sat, 12 Dec 2015 23:43:30 +0100 | ||
Subject: [PATCH] Improve server list ping logging | ||
|
@@ -7,10 +7,10 @@ This functionality of this patch was adopted upstream, however, this | |
patch remains for a few misc improvements around here | ||
|
||
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 6db704bd..53eac723 100644 | ||
index 4894b3ee..a8e938be 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
@@ -507,6 +507,6 @@ public class ServerConnector extends PacketHandler | ||
@@ -514,6 +514,6 @@ public class ServerConnector extends PacketHandler | ||
@Override | ||
public String toString() | ||
{ | ||
|
@@ -19,10 +19,10 @@ index 6db704bd..53eac723 100644 | |
} | ||
} | ||
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
index 6f74ed82..6f447b6d 100644 | ||
index 61ce9ed6..976c8e26 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
@@ -777,6 +777,6 @@ public class DownstreamBridge extends PacketHandler | ||
@@ -790,6 +790,6 @@ public class DownstreamBridge extends PacketHandler | ||
@Override | ||
public String toString() | ||
{ | ||
|
@@ -69,5 +69,5 @@ index 84be12e5..6acbf7bf 100644 | |
} | ||
} | ||
-- | ||
2.42.1 | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 2edfba28d1e4a68d6253a0db84a2685af6882041 Mon Sep 17 00:00:00 2001 | ||
From 18dec93180b89dc7f7bcda81cb5596ed53d38b33 Mon Sep 17 00:00:00 2001 | ||
From: Nathan Poirier <[email protected]> | ||
Date: Tue, 28 Jun 2016 23:00:49 -0500 | ||
Subject: [PATCH] Improve ServerKickEvent | ||
|
@@ -68,10 +68,10 @@ index 3f9efaa8..5d2597ad 100644 | |
/** | ||
* @return the kick reason | ||
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 53eac723..a1f5c709 100644 | ||
index a8e938be..43af8888 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
@@ -424,7 +424,7 @@ public class ServerConnector extends PacketHandler | ||
@@ -431,7 +431,7 @@ public class ServerConnector extends PacketHandler | ||
ServerKickEvent event = new ServerKickEvent( user, target, new BaseComponent[] | ||
{ | ||
kick.getMessage() | ||
|
@@ -81,10 +81,10 @@ index 53eac723..a1f5c709 100644 | |
{ | ||
// Pre cancel the event if we are going to try another server | ||
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
index 6f447b6d..3df0f26c 100644 | ||
index 976c8e26..7e416a6d 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
@@ -97,16 +97,19 @@ public class DownstreamBridge extends PacketHandler | ||
@@ -98,16 +98,19 @@ public class DownstreamBridge extends PacketHandler | ||
return; | ||
} | ||
|
||
|
@@ -109,7 +109,7 @@ index 6f447b6d..3df0f26c 100644 | |
} | ||
|
||
@Override | ||
@@ -121,7 +124,19 @@ public class DownstreamBridge extends PacketHandler | ||
@@ -122,7 +125,19 @@ public class DownstreamBridge extends PacketHandler | ||
|
||
if ( !server.isObsolete() ) | ||
{ | ||
|
@@ -130,7 +130,7 @@ index 6f447b6d..3df0f26c 100644 | |
} | ||
|
||
ServerDisconnectEvent serverDisconnectEvent = new ServerDisconnectEvent( con, server.getInfo() ); | ||
@@ -620,10 +635,14 @@ public class DownstreamBridge extends PacketHandler | ||
@@ -633,10 +648,14 @@ public class DownstreamBridge extends PacketHandler | ||
public void handle(Kick kick) throws Exception | ||
{ | ||
ServerInfo def = con.updateAndGetNextServer( server.getInfo() ); | ||
|
@@ -147,5 +147,5 @@ index 6f447b6d..3df0f26c 100644 | |
{ | ||
con.connectNow( event.getCancelServer(), ServerConnectEvent.Reason.KICK_REDIRECT ); | ||
-- | ||
2.42.1 | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
From 8eea3ccfded59af6e76549d279cf0def408a10ba Mon Sep 17 00:00:00 2001 | ||
From d875a31567c80968074c822239555a0db45bbd6f Mon Sep 17 00:00:00 2001 | ||
From: Aaron Hill <[email protected]> | ||
Date: Thu, 15 Sep 2016 22:38:37 +0200 | ||
Subject: [PATCH] Fix potion race condition on Forge 1.8.9 | ||
|
||
|
||
diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/AbstractPacketHandler.java b/protocol/src/main/java/net/md_5/bungee/protocol/AbstractPacketHandler.java | ||
index 0f8f5885..b3c8c6e2 100644 | ||
index 4383dbb5..2b4e4298 100644 | ||
--- a/protocol/src/main/java/net/md_5/bungee/protocol/AbstractPacketHandler.java | ||
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/AbstractPacketHandler.java | ||
@@ -238,4 +238,14 @@ public abstract class AbstractPacketHandler | ||
@@ -243,4 +243,14 @@ public abstract class AbstractPacketHandler | ||
public void handle(FinishConfiguration finishConfiguration) throws Exception | ||
{ | ||
} | ||
|
@@ -117,7 +117,7 @@ index 00000000..7ed2dc3a | |
+ } | ||
+} | ||
diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java | ||
index 7a62088d..cff35a06 100644 | ||
index f7160a66..a5ddcdc3 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java | ||
@@ -1,7 +1,9 @@ | ||
|
@@ -142,10 +142,10 @@ index 7a62088d..cff35a06 100644 | |
@Setter | ||
private String lastCommandTabbed; | ||
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
index f461c096..80275a15 100644 | ||
index 7e416a6d..8a10b057 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
@@ -740,6 +740,32 @@ public class DownstreamBridge extends PacketHandler | ||
@@ -753,6 +753,32 @@ public class DownstreamBridge extends PacketHandler | ||
} | ||
} | ||
|
||
|
@@ -216,5 +216,5 @@ index d15044f4..bea2bbff 100644 | |
* Sends the server mod list to the client, or stores it for sending later. | ||
* | ||
-- | ||
2.42.0 | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 864a8a831340faf45c4db8f6db6dd25e078e72d5 Mon Sep 17 00:00:00 2001 | ||
From 98b9ef9fb61e64abb7be8019bee05b2c0965dd13 Mon Sep 17 00:00:00 2001 | ||
From: Shane Freeder <[email protected]> | ||
Date: Mon, 14 Jan 2019 03:35:21 +0000 | ||
Subject: [PATCH] Provide an option to disable entity metadata rewriting | ||
|
@@ -57,10 +57,10 @@ 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 | ||
index a1f5c709..f43aee8c 100644 | ||
index 43af8888..bc2c4d03 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java | ||
@@ -254,7 +254,8 @@ public class ServerConnector extends PacketHandler | ||
@@ -255,7 +255,8 @@ public class ServerConnector extends PacketHandler | ||
ch.write( new PluginMessage( user.getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_13 ? "minecraft:register" : "REGISTER", Joiner.on( "\0" ).join( registeredChannels ).getBytes( StandardCharsets.UTF_8 ), false ) ); | ||
} | ||
|
||
|
@@ -70,23 +70,23 @@ index a1f5c709..f43aee8c 100644 | |
{ | ||
ch.write( user.getSettings() ); | ||
} | ||
@@ -309,6 +310,7 @@ public class ServerConnector extends PacketHandler | ||
@@ -310,6 +311,7 @@ public class ServerConnector extends PacketHandler | ||
user.getTabListHandler().onServerChange(); | ||
|
||
Scoreboard serverScoreboard = user.getServerSentScoreboard(); | ||
+ if ( !user.isDisableEntityMetadataRewrite() ) { // Waterfall | ||
for ( Objective objective : serverScoreboard.getObjectives() ) | ||
{ | ||
user.unsafe().sendPacket( new ScoreboardObjective( | ||
@@ -326,6 +328,7 @@ public class ServerConnector extends PacketHandler | ||
@@ -333,6 +335,7 @@ public class ServerConnector extends PacketHandler | ||
{ | ||
user.unsafe().sendPacket( new net.md_5.bungee.protocol.packet.Team( team.getName() ) ); | ||
} | ||
+ } // Waterfall | ||
serverScoreboard.clear(); | ||
|
||
for ( UUID bossbar : user.getSentBossBars() ) | ||
@@ -344,13 +347,34 @@ public class ServerConnector extends PacketHandler | ||
@@ -351,13 +354,34 @@ public class ServerConnector extends PacketHandler | ||
} | ||
|
||
user.setDimensionChange( true ); | ||
|
@@ -138,18 +138,18 @@ index a5ddcdc3..1d3b7a9d 100644 | |
+ // Waterfall end | ||
} | ||
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
index 4b812092..e8c7e2f2 100644 | ||
index 8a10b057..249c3f46 100644 | ||
--- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
+++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java | ||
@@ -744,6 +744,7 @@ public class DownstreamBridge extends PacketHandler | ||
@@ -757,6 +757,7 @@ public class DownstreamBridge extends PacketHandler | ||
@Override | ||
public void handle(net.md_5.bungee.protocol.packet.EntityEffect entityEffect) throws Exception | ||
{ | ||
+ if (con.isDisableEntityMetadataRewrite()) return; // Waterfall | ||
// Don't send any potions when switching between servers (which involves a handshake), which can trigger a race | ||
// condition on the client. | ||
if (this.con.getForgeClientHandler().isForgeUser() && !this.con.getForgeClientHandler().isHandshakeComplete()) { | ||
@@ -755,6 +756,7 @@ public class DownstreamBridge extends PacketHandler | ||
@@ -768,6 +769,7 @@ public class DownstreamBridge extends PacketHandler | ||
@Override | ||
public void handle(net.md_5.bungee.protocol.packet.EntityRemoveEffect removeEffect) throws Exception | ||
{ | ||
|
@@ -226,5 +226,5 @@ index 00000000..cb81d1dd | |
+// Waterfall end | ||
\ No newline at end of file | ||
-- | ||
2.42.1 | ||
2.39.2 | ||
|
Oops, something went wrong.