Skip to content

Commit fd29cde

Browse files
committed
Just remove this static initializer
1 parent 9e7bea0 commit fd29cde

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/ru/endlesscode/markitem/Glow.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@
1515
class Glow extends EnchantmentWrapper {
1616
private static final Enchantment GLOW = new Glow();
1717

18-
static {
19-
try {
20-
Field field = Enchantment.class.getDeclaredField("acceptingNew");
21-
field.setAccessible(true);
22-
field.set(null, true);
23-
24-
Enchantment.registerEnchantment(GLOW);
25-
} catch (Exception ignored) {}
26-
}
27-
2818
private Glow() {
2919
super("glow_effect");
3020
}
@@ -70,7 +60,6 @@ public static void register() {
7060
acceptingNew.set(null, true);
7161
Enchantment.registerEnchantment(GLOW);
7262
} catch (Exception ignored) {
73-
7463
}
7564
}
7665
}

0 commit comments

Comments
 (0)