mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-19 15:09:25 +00:00
1.21
This commit is contained in:
@@ -8,7 +8,7 @@ plugins {
|
||||
allprojects {
|
||||
|
||||
project.group = "net.momirealms"
|
||||
project.version = "3.5.3"
|
||||
project.version = "3.5.4"
|
||||
|
||||
apply<JavaPlugin>()
|
||||
apply(plugin = "java")
|
||||
|
||||
@@ -58,6 +58,7 @@ public class CustomCropsPluginImpl extends CustomCropsPlugin {
|
||||
this.dependencyManager.loadDependencies(new ArrayList<>(
|
||||
List.of(
|
||||
Dependency.GSON,
|
||||
Dependency.EXP4J,
|
||||
Dependency.SLF4J_API,
|
||||
Dependency.SLF4J_SIMPLE,
|
||||
versionManager.isMojmap() ? Dependency.COMMAND_API_MOJMAP : Dependency.COMMAND_API,
|
||||
|
||||
@@ -63,7 +63,7 @@ public enum Dependency {
|
||||
COMMAND_API(
|
||||
"dev{}jorel",
|
||||
"commandapi-bukkit-shade",
|
||||
"9.5.0",
|
||||
"9.5.1",
|
||||
null,
|
||||
"commandapi-bukkit",
|
||||
Relocation.of("commandapi", "dev{}jorel{}commandapi")
|
||||
@@ -71,7 +71,7 @@ public enum Dependency {
|
||||
COMMAND_API_MOJMAP(
|
||||
"dev{}jorel",
|
||||
"commandapi-bukkit-shade-mojang-mapped",
|
||||
"9.5.0",
|
||||
"9.5.1",
|
||||
null,
|
||||
"commandapi-bukkit-mojang-mapped",
|
||||
Relocation.of("commandapi", "dev{}jorel{}commandapi")
|
||||
@@ -134,6 +134,14 @@ public enum Dependency {
|
||||
"2.10.1",
|
||||
null,
|
||||
"gson"
|
||||
),
|
||||
EXP4J(
|
||||
"net{}objecthunter",
|
||||
"exp4j",
|
||||
"0.4.8",
|
||||
null,
|
||||
"exp4j",
|
||||
Relocation.of("exp4j", "net{}objecthunter{}exp4j")
|
||||
);
|
||||
|
||||
private final String mavenRepoPath;
|
||||
|
||||
@@ -45,7 +45,7 @@ public class VersionManagerImpl extends VersionManager {
|
||||
this.pluginVersion = plugin.getDescription().getVersion();
|
||||
|
||||
String[] split = plugin.getServerVersion().split("\\.");
|
||||
this.mcVersion = Float.parseFloat(split[1] + "." + split[2]);
|
||||
this.mcVersion = Float.parseFloat(split[1] + "." + (split.length >= 3 ? split[2] : "0"));
|
||||
|
||||
try {
|
||||
Class.forName("io.papermc.paper.threadedregions.RegionizedServer");
|
||||
|
||||
Reference in New Issue
Block a user