9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 09:59:20 +00:00

额外异常处理

This commit is contained in:
XiaoMoMi
2025-08-05 20:19:10 +08:00
parent e4ecacd69f
commit afeec47672

View File

@@ -471,9 +471,12 @@ public class BukkitRecipeManager extends AbstractRecipeManager<ItemStack> {
}
// 注册新的配方
for (Recipe<ItemStack> recipe : this.byId.values()) {
registerPlatformRecipeMainThread(recipe);
try {
registerPlatformRecipeMainThread(recipe);
} catch (Exception e) {
this.plugin.logger().warn("Failed to register recipe " + recipe.id().toString(), e);
}
}
try {
// give flags back on 1.21.2+
if (VersionHelper.isOrAbove1_21_2() && this.stolenFeatureFlagSet != null) {