mirror of
https://github.com/ViaVersion/ViaLegacy.git
synced 2024-09-28 04:17:40 +02:00
Replace incoming/outgoing usages with client/server bound
This commit is contained in:
parent
34dbb004f0
commit
05604ca1a1
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user