Make the catch specific to the potential error

This commit is contained in:
tastybento 2024-08-07 21:46:31 -07:00
parent d2a6398b4d
commit 21efeb813b

View File

@ -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) {