From d8a28dc88468056c3372a17e03fa21b7cf60a3fd Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Mon, 5 Aug 2024 20:18:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dloot=E6=B3=A8=E5=85=A5?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/mcreator/superbwarfare/init/ModLootModifier.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/mcreator/superbwarfare/init/ModLootModifier.java b/src/main/java/net/mcreator/superbwarfare/init/ModLootModifier.java index 71436f0a6..ea886f011 100644 --- a/src/main/java/net/mcreator/superbwarfare/init/ModLootModifier.java +++ b/src/main/java/net/mcreator/superbwarfare/init/ModLootModifier.java @@ -46,14 +46,12 @@ public class ModLootModifier { } } - public static final DeferredRegister> LOOT_MODIFIERS = DeferredRegister.create(ForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS, "target"); - public static final RegistryObject> LOOT_MODIFIER = LOOT_MODIFIERS.register("target_loot_modifier", TargetModLootTableModifier.CODEC); + public static final DeferredRegister> LOOT_MODIFIERS = DeferredRegister.create(ForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS, ModUtils.MODID); + public static final RegistryObject> LOOT_MODIFIER = LOOT_MODIFIERS.register(ModUtils.MODID + "_loot_modifier", TargetModLootTableModifier.CODEC); @SubscribeEvent public static void register(FMLConstructModEvent event) { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); - event.enqueueWork(() -> { - LOOT_MODIFIERS.register(bus); - }); + event.enqueueWork(() -> LOOT_MODIFIERS.register(bus)); } }