mirror of
https://github.com/YouHaveTrouble/Enchantio.git
synced 2026-05-12 06:06:55 +00:00
adjust to registry api change
This commit is contained in:
@@ -42,7 +42,7 @@ public class EnchantioBootstrap implements PluginBootstrap {
|
||||
}
|
||||
}));
|
||||
|
||||
context.getLifecycleManager().registerEventHandler(RegistryEvents.ENCHANTMENT.freeze().newHandler(event -> {
|
||||
context.getLifecycleManager().registerEventHandler(RegistryEvents.ENCHANTMENT.compose().newHandler(event -> {
|
||||
for (EnchantioEnchant enchant : enchantioEnchants) {
|
||||
logger.info("Registering enchantment {}", enchant.getKey());
|
||||
event.registry().register(TypedKey.create(RegistryKey.ENCHANTMENT, enchant.getKey()), enchantment -> {
|
||||
|
||||
Reference in New Issue
Block a user