mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-21 18:25:12 +01:00
Make the catch specific to the potential error
This commit is contained in:
parent
d2a6398b4d
commit
21efeb813b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user