9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-19 15:09:24 +00:00
This commit is contained in:
XiaoMoMi
2025-07-03 21:29:53 +08:00
parent b7a038d867
commit ee760d29ba
9 changed files with 63 additions and 24 deletions

View File

@@ -84,15 +84,15 @@ artifacts {
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion = JavaLanguageVersion.of(17)
languageVersion = JavaLanguageVersion.of(21)
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(17)
options.release.set(21)
dependsOn(tasks.clean)
}

View File

@@ -68,7 +68,7 @@ public class BukkitIntegrationManager implements IntegrationManager {
this.plugin = plugin;
try {
this.load();
} catch (Exception e) {
} catch (Throwable e) {
plugin.getPluginLogger().warn("Failed to load integrations", e);
} finally {
instance = this;

View File

@@ -48,7 +48,7 @@ public abstract class BukkitItemFactory extends ItemFactory<CustomFishingPlugin,
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4" -> {
return new ComponentItemFactory(plugin);
}
case "1.21.5", "1.21.6" -> {
case "1.21.5", "1.21.6", "1.21.7" -> {
return new ComponentItemFactory1_21_5(plugin);
}
default -> throw new IllegalStateException("Unsupported server version: " + plugin.getServerVersion());