2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/enchantment/Enchantments.java
|
|
|
|
+++ b/net/minecraft/world/item/enchantment/Enchantments.java
|
2022-12-07 17:00:00 +01:00
|
|
|
@@ -50,6 +50,10 @@
|
2021-06-11 07:00:00 +02:00
|
|
|
public Enchantments() {}
|
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
private static Enchantment register(String s, Enchantment enchantment) {
|
2022-12-07 17:00:00 +01:00
|
|
|
- return (Enchantment) IRegistry.register(BuiltInRegistries.ENCHANTMENT, s, enchantment);
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ enchantment = (Enchantment) IRegistry.register(BuiltInRegistries.ENCHANTMENT, s, enchantment);
|
|
|
|
+ org.bukkit.enchantments.Enchantment.registerEnchantment(new org.bukkit.craftbukkit.enchantments.CraftEnchantment(enchantment));
|
|
|
|
+ return enchantment;
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
}
|