mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
8b26bb8f3e
By: md_5 <git@md-5.net>
14 lines
686 B
Diff
14 lines
686 B
Diff
--- a/net/minecraft/world/item/enchantment/Enchantments.java
|
|
+++ b/net/minecraft/world/item/enchantment/Enchantments.java
|
|
@@ -50,6 +50,10 @@
|
|
public Enchantments() {}
|
|
|
|
private static Enchantment register(String s, Enchantment enchantment) {
|
|
- 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
|
|
}
|
|
}
|