Skip to content

Commit

Permalink
Remove unused setup method in GrowthcraftDeco
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Alatyami committed Jun 17, 2024
1 parent 9990464 commit 2fbc5c4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main/java/growthcraft/deco/GrowthcraftDeco.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 2fbc5c4

Please sign in to comment.