Skip to content

Commit

Permalink
Default to using channel metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Dec 3, 2022
1 parent 0623080 commit a74e40e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/src/main/java/net/citizensnpcs/util/Util.java
Expand Up @@ -345,7 +345,7 @@ public static boolean requiresNettyChannelMetadata() {
version = Version.identify().get("netty-all");
}
if (version == null)
return REQUIRES_CHANNEL_METADATA = false;
return REQUIRES_CHANNEL_METADATA = true;
try {
Integer[] parts = StreamSupport
.stream(Splitter.on('.').split(version.artifactVersion()).spliterator(), false).map(string -> {
Expand All @@ -359,7 +359,7 @@ public static boolean requiresNettyChannelMetadata() {
int major = parts[0];
int minor = parts[1];
int patch = parts[2];
return REQUIRES_CHANNEL_METADATA = major >= 5 || major == 4 && (minor > 1 || patch >= 1);
return REQUIRES_CHANNEL_METADATA = major >= 5 || major == 4 && (minor > 1 || patch >= 25);
} catch (Throwable t) {
t.printStackTrace();
return REQUIRES_CHANNEL_METADATA = true;
Expand Down

0 comments on commit a74e40e

Please sign in to comment.