From 204fbb3c28a2750b55f1633fa6f960b9982f5986 Mon Sep 17 00:00:00 2001 From: Jeremiah Winsley Date: Sun, 1 Nov 2020 17:17:44 -0500 Subject: [PATCH] Register entities immediately within FMLClientSetupEvent (#1704) --- src/main/java/wayoftime/bloodmagic/client/ClientEvents.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/wayoftime/bloodmagic/client/ClientEvents.java b/src/main/java/wayoftime/bloodmagic/client/ClientEvents.java index 21ad7547..6021320f 100644 --- a/src/main/java/wayoftime/bloodmagic/client/ClientEvents.java +++ b/src/main/java/wayoftime/bloodmagic/client/ClientEvents.java @@ -55,15 +55,15 @@ public class ClientEvents @SuppressWarnings("deprecation") public static void initClientEvents(FMLClientSetupEvent event) { + RenderingRegistry.registerEntityRenderingHandler(BloodMagicEntityTypes.SNARE.getEntityType(), SoulSnareRenderer::new); + RenderingRegistry.registerEntityRenderingHandler(BloodMagicEntityTypes.BLOOD_LIGHT.getEntityType(), BloodLightRenderer::new); + DeferredWorkQueue.runLater(() -> { RenderType rendertype = RenderType.getCutoutMipped(); RenderTypeLookup.setRenderLayer(BloodMagicBlocks.ALCHEMY_TABLE.get(), rendertype); ClientEvents.registerContainerScreens(); - RenderingRegistry.registerEntityRenderingHandler(BloodMagicEntityTypes.SNARE.getEntityType(), SoulSnareRenderer::new); - RenderingRegistry.registerEntityRenderingHandler(BloodMagicEntityTypes.BLOOD_LIGHT.getEntityType(), BloodLightRenderer::new); - registerToggleableProperties(BloodMagicItems.GREEN_GROVE_SIGIL.get()); registerToggleableProperties(BloodMagicItems.FAST_MINER_SIGIL.get()); registerToggleableProperties(BloodMagicItems.MAGNETISM_SIGIL.get());