mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
Default to using channel metadata
This commit is contained in:
parent
06230800b9
commit
a74e40eb1d
@ -345,7 +345,7 @@ public class Util {
|
||||
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 -> {
|
||||
@ -359,7 +359,7 @@ public class Util {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user