mirror of
https://github.com/PaperMC/Paper.git
synced 2025-04-05 14:01:02 +02:00
17 lines
855 B
Diff
17 lines
855 B
Diff
--- a/net/minecraft/world/item/enchantment/Enchantments.java
|
|
+++ b/net/minecraft/world/item/enchantment/Enchantments.java
|
|
@@ -45,6 +45,14 @@
|
|
public static final Enchantment MENDING = register("mending", new EnchantmentMending(Enchantment.Rarity.RARE, EnumItemSlot.values()));
|
|
public static final Enchantment VANISHING_CURSE = register("vanishing_curse", new EnchantmentVanishing(Enchantment.Rarity.VERY_RARE, EnumItemSlot.values()));
|
|
|
|
+ // CraftBukkit start
|
|
+ static {
|
|
+ for (Object enchantment : IRegistry.ENCHANTMENT) {
|
|
+ org.bukkit.enchantments.Enchantment.registerEnchantment(new org.bukkit.craftbukkit.enchantments.CraftEnchantment((Enchantment) enchantment));
|
|
+ }
|
|
+ }
|
|
+ // CraftBukkit end
|
|
+
|
|
public Enchantments() {}
|
|
|
|
private static Enchantment register(String s, Enchantment enchantment) {
|