2015-05-25 20:37:24 +10:00
--- a/net/minecraft/server/Enchantment.java
+++ b/net/minecraft/server/Enchantment.java
2016-11-17 12:41:03 +11:00
@@ -19,7 +19,7 @@
2016-03-01 08:32:46 +11:00
}
2014-11-26 08:32:16 +11:00
2016-03-01 08:32:46 +11:00
public static int getId(Enchantment enchantment) {
- return Enchantment.enchantments.a((Object) enchantment);
+ return Enchantment.enchantments.a(enchantment); // CraftBukkit - fix decompile error
}
2014-11-26 08:32:16 +11:00
2016-05-10 21:47:39 +10:00
@Nullable
2016-11-17 12:41:03 +11:00
@@ -149,6 +149,11 @@
2016-03-01 08:32:46 +11:00
Enchantment.enchantments.a(62, new MinecraftKey("lure"), new EnchantmentLure(Enchantment.Rarity.RARE, EnchantmentSlotType.FISHING_ROD, new EnumItemSlot[] { EnumItemSlot.MAINHAND}));
Enchantment.enchantments.a(70, new MinecraftKey("mending"), new EnchantmentMending(Enchantment.Rarity.RARE, EnumItemSlot.values()));
2016-11-17 12:41:03 +11:00
Enchantment.enchantments.a(71, new MinecraftKey("vanishing_curse"), new EnchantmentVanishing(Enchantment.Rarity.VERY_RARE, EnumItemSlot.values()));
2016-03-01 08:32:46 +11:00
+ // CraftBukkit start
2016-06-09 11:43:49 +10:00
+ for (Object enchantment : Enchantment.enchantments) {
+ org.bukkit.enchantments.Enchantment.registerEnchantment(new org.bukkit.craftbukkit.enchantments.CraftEnchantment((Enchantment) enchantment));
2016-03-01 08:32:46 +11:00
+ }
+ // CraftBukkit end
2014-11-26 08:32:16 +11:00
}
2016-03-01 08:32:46 +11:00
public static enum Rarity {