9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-28 19:39:20 +00:00

Improve vanilla crop check

This commit is contained in:
XiaoMoMi
2025-02-24 17:40:23 +08:00
parent c1feb79e86
commit 08e3ba6f1d
6 changed files with 17 additions and 9 deletions

View File

@@ -45,6 +45,7 @@ tasks {
from(project(":compatibility-oraxen-r2").tasks.jar.get().archiveFile)
from(project(":compatibility-itemsadder-r1").tasks.jar.get().archiveFile)
from(project(":compatibility-crucible-r1").tasks.jar.get().archiveFile)
from(project(":compatibility-craftengine-r1").tasks.jar.get().archiveFile)
archiveFileName = "CustomCrops-${rootProject.properties["project_version"]}.jar"
destinationDirectory.set(file("$rootDir/target"))
relocate("net.kyori", "net.momirealms.customcrops.libraries")

View File

@@ -45,7 +45,7 @@ public abstract class BukkitItemFactory extends ItemFactory<CustomCropsPlugin, R
return new UniversalItemFactory(plugin);
}
case "1.20.5", "1.20.6",
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4" -> {
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4", "1.21.5" -> {
return new ComponentItemFactory(plugin);
}
default -> throw new IllegalStateException("Unsupported server version: " + plugin.getServerVersion());