We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e7bea0 commit fd29cdeCopy full SHA for fd29cde
1 file changed
src/ru/endlesscode/markitem/Glow.java
@@ -15,16 +15,6 @@
15
class Glow extends EnchantmentWrapper {
16
private static final Enchantment GLOW = new Glow();
17
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
28
private Glow() {
29
super("glow_effect");
30
}
@@ -70,7 +60,6 @@ public static void register() {
70
60
acceptingNew.set(null, true);
71
61
Enchantment.registerEnchantment(GLOW);
72
62
} catch (Exception ignored) {
73
74
63
75
64
76
65
0 commit comments