Skip to content

Commit

Permalink
Resolve crash on server start, issue trunksbomb#5
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothrazar committed Feb 13, 2021
1 parent 8cccc44 commit 6a19e10
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/java/com/trunksbomb/batteries/BatteriesMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,14 @@ public BatteriesMod() {

private void setup(final FMLCommonSetupEvent event)
{
// some preinit code
ScreenManager.registerFactory(BATTERY_CONTAINER.get(), BatteryScreen::new);

//Network Registry
PacketHandler.setup();
}

private void doClientStuff(final FMLClientSetupEvent event) {
// do something that can only be done on the client
LOGGER.info("Got game settings {}", event.getMinecraftSupplier().get().gameSettings);
private void doClientStuff(final FMLClientSetupEvent event)
{
// some preinit code
ScreenManager.registerFactory(BATTERY_CONTAINER.get(), BatteryScreen::new);
}

private void enqueueIMC(final InterModEnqueueEvent event)
Expand Down

0 comments on commit 6a19e10

Please sign in to comment.