Skip to content

Commit

Permalink
[BungeeCord] Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Nov 23, 2024
1 parent 3ef3d14 commit acee89c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void sendMessage(@NotNull TabComponent message) {
try {
getPlayer().sendMessage((BaseComponent) message.convert(getVersion()));
} catch (NullPointerException BungeeCordBug) {
// TODO remove this at some point in the near future as it got fixed in build #1882 (when 1.21.4 is out and required bungee build gets bumped)
// java.lang.NullPointerException: Cannot invoke "net.md_5.bungee.protocol.MinecraftEncoder.getProtocol()" because the return value of "io.netty.channel.ChannelPipeline.get(java.lang.Class)" is null
// at net.md_5.bungee.netty.ChannelWrapper.getEncodeProtocol(ChannelWrapper.java:51)
// at net.md_5.bungee.UserConnection.sendPacketQueued(UserConnection.java:198)
Expand Down Expand Up @@ -92,6 +93,7 @@ public void sendPluginMessage(byte[] message) {
try {
getPlayer().getServer().sendData(TabConstants.PLUGIN_MESSAGE_CHANNEL_NAME, message);
} catch (NullPointerException BungeeCordBug) {
// TODO remove this at some point in the near future as it got fixed in build #1882 (when 1.21.4 is out and required bungee build gets bumped)
// java.lang.NullPointerException: Cannot invoke "net.md_5.bungee.protocol.MinecraftEncoder.getProtocol()" because the return value of "io.netty.channel.ChannelPipeline.get(java.lang.Class)" is null
// at net.md_5.bungee.netty.ChannelWrapper.getEncodeProtocol(ChannelWrapper.java:51)
// at net.md_5.bungee.ServerConnection.sendPacketQueued(ServerConnection.java:48)
Expand All @@ -115,6 +117,7 @@ public void sendPacket(@NotNull DefinedPacket packet) {
try {
((UserConnection)getPlayer()).sendPacketQueued(packet);
} catch (NullPointerException BungeeCordBug) {
// TODO remove this at some point in the near future as it got fixed in build #1882 (when 1.21.4 is out and required bungee build gets bumped)
// java.lang.NullPointerException: Cannot invoke "net.md_5.bungee.protocol.MinecraftEncoder.getProtocol()" because the return value of "io.netty.channel.ChannelPipeline.get(java.lang.Class)" is null
// at net.md_5.bungee.netty.ChannelWrapper.getEncodeProtocol(ChannelWrapper.java:51)
// at net.md_5.bungee.UserConnection.sendPacketQueued(UserConnection.java:194)
Expand Down

0 comments on commit acee89c

Please sign in to comment.