From 21efeb813bc5eadbff9f81cb557be4d061c7256f Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 7 Aug 2024 21:46:31 -0700 Subject: [PATCH] Make the catch specific to the potential error --- src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java b/src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java index aaa108f41..9bfd67aa9 100644 --- a/src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java +++ b/src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java @@ -134,7 +134,7 @@ public class PanelItem { if (meta != null) { try { meta.setEnchantmentGlintOverride(glow); - } catch (Exception e) { + } catch (NoSuchMethodError e) { // Try the old way if (meta != null) { if (glow) {