Skip to content

Commit d06b43e

Browse files
committed
Fixed AsyncHandler being initialised at the wrong time
1 parent 46c74c9 commit d06b43e

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66

77

88
group = 'com.datdeveloper'
9-
version = "${minecraftVersion}-1.1.0"
9+
version = "${minecraftVersion}-1.1.1"
1010

1111
java {
1212
archivesBaseName = 'datmoddingapi'

src/main/java/com/datdeveloper/datmoddingapi/Datmoddingapi.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,16 @@ public Datmoddingapi() {
5252
ForgeConfigSpec.Builder builder = new ForgeConfigSpec.Builder();
5353
DatConfig config = new DatConfig(builder);
5454
ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, builder.build());
55-
56-
AsyncHandler.initialise();
57-
58-
DatPermissions.spongeLoaded = ModList.get().isLoaded("spongeforge");
5955
}
6056

6157
private void commonSetup(final FMLCommonSetupEvent event) {
6258
// Some common setup code
6359
LOGGER.info("HELLO FROM COMMON SETUP");
60+
61+
62+
AsyncHandler.initialise();
63+
64+
DatPermissions.spongeLoaded = ModList.get().isLoaded("spongeforge");
6465
}
6566

6667
// You can use SubscribeEvent and let the Event Bus discover methods to call

0 commit comments

Comments
 (0)