mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 09:59:20 +00:00
额外异常处理
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user