mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2026-01-06 15:51:52 +00:00
Fix possible float deviation
This commit is contained in:
@@ -95,19 +95,11 @@ public class VersionHelper {
|
||||
}
|
||||
|
||||
public static boolean isVersionNewerThan1_19_4() {
|
||||
return version >= 19.4;
|
||||
}
|
||||
|
||||
public static boolean isVersionNewerThan1_19_3() {
|
||||
return version >= 19.3;
|
||||
return version >= 19.39;
|
||||
}
|
||||
|
||||
public static boolean isVersionNewerThan1_20() {
|
||||
return version >= 20.0;
|
||||
}
|
||||
|
||||
public static boolean isVersionNewerThan1_20_5() {
|
||||
return version >= 20.5;
|
||||
return version >= 20;
|
||||
}
|
||||
|
||||
public static boolean isFolia() {
|
||||
|
||||
@@ -52,15 +52,15 @@ tasks {
|
||||
shadowJar {
|
||||
archiveFileName = "CustomCrops-${rootProject.properties["project_version"]}.jar"
|
||||
destinationDirectory.set(file("$rootDir/target"))
|
||||
relocate ("net.kyori", "net.momirealms.customcrops.libraries")
|
||||
relocate ("org.objenesis", "net.momirealms.customcrops.libraries.objenesis")
|
||||
relocate ("org.bstats", "net.momirealms.customcrops.libraries.bstats")
|
||||
relocate ("dev.dejvokep.boostedyaml", "net.momirealms.customcrops.libraries.boostedyaml")
|
||||
relocate ("net.momirealms.sparrow.heart", "net.momirealms.customcrops.libraries.sparrow")
|
||||
relocate ("net.momirealms.antigrieflib", "net.momirealms.customcrops.libraries.antigrieflib")
|
||||
relocate ("net.objecthunter.exp4j", "net.momirealms.customcrops.libraries.exp4j")
|
||||
relocate ("com.saicone.rtag", "net.momirealms.customcrops.libraries.rtag")
|
||||
relocate ("com.github.benmanes.caffeine", "net.momirealms.customcrops.libraries.caffeine")
|
||||
relocate("net.kyori", "net.momirealms.customcrops.libraries")
|
||||
relocate("org.objenesis", "net.momirealms.customcrops.libraries.objenesis")
|
||||
relocate("org.bstats", "net.momirealms.customcrops.libraries.bstats")
|
||||
relocate("dev.dejvokep.boostedyaml", "net.momirealms.customcrops.libraries.boostedyaml")
|
||||
relocate("net.momirealms.sparrow.heart", "net.momirealms.customcrops.libraries.sparrow")
|
||||
relocate("net.momirealms.antigrieflib", "net.momirealms.customcrops.libraries.antigrieflib")
|
||||
relocate("net.objecthunter.exp4j", "net.momirealms.customcrops.libraries.exp4j")
|
||||
relocate("com.saicone.rtag", "net.momirealms.customcrops.libraries.rtag")
|
||||
relocate("com.github.benmanes.caffeine", "net.momirealms.customcrops.libraries.caffeine")
|
||||
relocate("org.incendo", "net.momirealms.customcrops.libraries")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user