From 2fbc5c47ce0c882e5f2aa2eaa45ddfb65ae29f47 Mon Sep 17 00:00:00 2001 From: Alatyami Date: Mon, 17 Jun 2024 00:36:49 -0600 Subject: [PATCH] Remove unused setup method in GrowthcraftDeco The setup method in GrowthcraftDeco was removed alongside its related imports and calls, as it was not performing any functions. This cleanup helps to reduce unnecessary method calls and streamlines the mod loading process. --- src/main/java/growthcraft/deco/GrowthcraftDeco.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/growthcraft/deco/GrowthcraftDeco.java b/src/main/java/growthcraft/deco/GrowthcraftDeco.java index dde43de5..9c04654e 100644 --- a/src/main/java/growthcraft/deco/GrowthcraftDeco.java +++ b/src/main/java/growthcraft/deco/GrowthcraftDeco.java @@ -12,7 +12,6 @@ import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; -import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.registries.MissingMappingsEvent; import org.apache.logging.log4j.LogManager; @@ -26,7 +25,6 @@ public class GrowthcraftDeco { public GrowthcraftDeco() { IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); - modEventBus.addListener(this::setup); modEventBus.addListener(this::clientSetupEvent); GrowthcraftDecoBlocks.BLOCKS.register(modEventBus); @@ -39,15 +37,10 @@ public GrowthcraftDeco() { } - private void setup(final FMLCommonSetupEvent event) { - // Do nothing for now ... - } - private void clientSetupEvent(final FMLClientSetupEvent event) { GrowthcraftDecoBlockRenderers.registerBlockRenders(); } - // You can use SubscribeEvent and let the Event Bus discover methods to call @SubscribeEvent public void onServerStarting(ServerStartingEvent event) { // do something when the server starts