Skip to content

Commit 21efeb8

Browse files
committed
Make the catch specific to the potential error
1 parent d2a6398 commit 21efeb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void setGlow(boolean glow) {
134134
if (meta != null) {
135135
try {
136136
meta.setEnchantmentGlintOverride(glow);
137-
} catch (Exception e) {
137+
} catch (NoSuchMethodError e) {
138138
// Try the old way
139139
if (meta != null) {
140140
if (glow) {

0 commit comments

Comments
 (0)