Replace incoming/outgoing usages with client/server bound

This commit is contained in:
FlorianMichael 2024-04-16 21:19:00 +02:00
parent 34dbb004f0
commit 05604ca1a1
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 3 additions and 3 deletions

View File

@ -1370,7 +1370,7 @@ public class Protocol1_8to1_7_6_10 extends AbstractProtocol<ClientboundPackets1_
if (ViaLegacy.getConfig().isIgnoreLong1_8ChannelNames() && channel.length() > 16) {
if (!Via.getConfig().isSuppressConversionWarnings()) {
ViaLegacy.getPlatform().getLogger().warning("Ignoring incoming plugin channel, as it is longer than 16 characters: '" + channel + "'");
ViaLegacy.getPlatform().getLogger().warning("Ignoring serverbound plugin channel, as it is longer than 16 characters: '" + channel + "'");
}
wrapper.cancel();
return;
@ -1415,7 +1415,7 @@ public class Protocol1_8to1_7_6_10 extends AbstractProtocol<ClientboundPackets1_
for (String registeredChannel : registeredChannels) {
if (registeredChannel.length() > 16) {
if (!Via.getConfig().isSuppressConversionWarnings()) {
ViaLegacy.getPlatform().getLogger().warning("Ignoring incoming plugin channel register of '" + registeredChannel + "', as it is longer than 16 characters");
ViaLegacy.getPlatform().getLogger().warning("Ignoring serverbound plugin channel register of '" + registeredChannel + "', as it is longer than 16 characters");
}
continue;
}

View File

@ -2,7 +2,7 @@
# Calculate 1.7.10 OnGround field dynamically. Requires a bit of extra caching
dynamic-onground: true
#
# Ignores incoming plugin channel messages of 1.8+ clients with channel names longer than 16 characters
# Ignores serverbound plugin channel messages of 1.8+ clients with channel names longer than 16 characters
# CraftBukkit had this limit hardcoded until 1.8
ignore-long-1_8-channel-names: true
#