mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +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");
|
version = Version.identify().get("netty-all");
|
||||||
}
|
}
|
||||||
if (version == null)
|
if (version == null)
|
||||||
return REQUIRES_CHANNEL_METADATA = false;
|
return REQUIRES_CHANNEL_METADATA = true;
|
||||||
try {
|
try {
|
||||||
Integer[] parts = StreamSupport
|
Integer[] parts = StreamSupport
|
||||||
.stream(Splitter.on('.').split(version.artifactVersion()).spliterator(), false).map(string -> {
|
.stream(Splitter.on('.').split(version.artifactVersion()).spliterator(), false).map(string -> {
|
||||||
@ -359,7 +359,7 @@ public class Util {
|
|||||||
int major = parts[0];
|
int major = parts[0];
|
||||||
int minor = parts[1];
|
int minor = parts[1];
|
||||||
int patch = parts[2];
|
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) {
|
} catch (Throwable t) {
|
||||||
t.printStackTrace();
|
t.printStackTrace();
|
||||||
return REQUIRES_CHANNEL_METADATA = true;
|
return REQUIRES_CHANNEL_METADATA = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user