mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 09:23:42 +01:00
18 lines
629 B
Diff
18 lines
629 B
Diff
|
@@ -8,6 +8,7 @@
|
||
|
|
||
|
public abstract class Enchantment {
|
||
|
|
||
|
+ // CraftBukkit - update CraftEnchant.getName(i) if this changes
|
||
|
private static final Enchantment[] byId = new Enchantment[256];
|
||
|
public static final Enchantment[] b;
|
||
|
private static final Map E = Maps.newHashMap();
|
||
|
@@ -55,6 +56,8 @@
|
||
|
Enchantment.byId[i] = this;
|
||
|
Enchantment.E.put(minecraftkey, this);
|
||
|
}
|
||
|
+
|
||
|
+ org.bukkit.enchantments.Enchantment.registerEnchantment(new org.bukkit.craftbukkit.enchantments.CraftEnchantment(this)); // CraftBukkit
|
||
|
}
|
||
|
|
||
|
public static Enchantment getByName(String s) {
|