mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
43702a9e10
By: md_5 <git@md-5.net>
18 lines
855 B
Diff
18 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) {
|