mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-06 22:17:40 +01:00
Updated registries
This commit is contained in:
parent
bf135755c6
commit
c6b291eb67
@ -16,8 +16,8 @@ public final class EcoCraftEnchantmentManager implements EcoCraftEnchantmentMana
|
||||
public void registerNewCraftEnchantments() {
|
||||
Map<org.bukkit.enchantments.Enchantment, VanillaEnchantmentMetadata> metadataMap = VanillaEnchantments.getMetadataMap();
|
||||
|
||||
for (Enchantment enchantment : IRegistry.Y) {
|
||||
NamespacedKey key = CraftNamespacedKey.fromMinecraft(IRegistry.Y.b(enchantment));
|
||||
for (Enchantment enchantment : IRegistry.V) {
|
||||
NamespacedKey key = CraftNamespacedKey.fromMinecraft(IRegistry.V.b(enchantment));
|
||||
VanillaEnchantmentMetadata metadata = metadataMap.get(org.bukkit.enchantments.Enchantment.getByKey(key));
|
||||
new EcoCraftEnchantment(enchantment, metadata).register();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user