mirror of
https://github.com/rockyhawk64/CommandPanels.git
synced 2025-11-18 07:14:17 +01:00
Update ItemActionTag.java
This commit is contained in:
parent
29c4882bcd
commit
1e21cc771a
@ -105,9 +105,8 @@ public class ItemActionTag implements CommandTagResolver {
|
||||
}
|
||||
|
||||
private Enchantment registryEnchant(NamespacedKey key) {
|
||||
RegistryAccess registryAccess = RegistryAccess.registryAccess();
|
||||
if (key != null) {
|
||||
return registryAccess.getRegistry(RegistryKey.ENCHANTMENT).get(key);
|
||||
return RegistryAccess.registryAccess().getRegistry(RegistryKey.ENCHANTMENT).get(key);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user