Skip to content

Commit

Permalink
Make the catch specific to the potential error
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Aug 8, 2024
1 parent d2a6398 commit 21efeb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void setGlow(boolean glow) {
if (meta != null) {
try {
meta.setEnchantmentGlintOverride(glow);
} catch (Exception e) {
} catch (NoSuchMethodError e) {
// Try the old way
if (meta != null) {
if (glow) {
Expand Down

0 comments on commit 21efeb8

Please sign in to comment.