Skip to content

Commit

Permalink
Updated to neoforge 21.0.84, config changed to startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Jul 11, 2024
1 parent 7b3619e commit 05f9e6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ minecraft_version=1.21
# as they do not follow standard versioning conventions.
minecraft_version_range=[1.21,1.21.1)
# The Neo version must agree with the Minecraft version to get a valid artifact
neo_version=21.0.42-beta
neo_version=21.0.84-beta
# The Neo version range can use any version of Neo as bounds
neo_version_range=[21.0.0-beta,)
neo_version_range=[21.0.84-beta,)
# The loader version range can only use the major version of FML as bounds
loader_version_range=[4,)

Expand All @@ -29,7 +29,7 @@ mod_name=Dark Mode Everywhere
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=1.21-1.3.0
mod_version=1.21-1.3.1
mod_group_id=com.buuz135
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
mod_authors=Buuz135
Expand Down
8 changes: 1 addition & 7 deletions src/main/java/com/buuz135/darkmodeeverywhere/DarkConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public class DarkConfig {
public static Client CLIENT = new Client();

private static abstract class ConfigClass {

public ModConfigSpec SPEC;

public abstract void onConfigReload(ModConfigEvent.Reloading event);
}

public static class Client extends ConfigClass {
Expand Down Expand Up @@ -83,11 +83,5 @@ public Client() {
SPEC = BUILDER.build();
}

@Override
public void onConfigReload(ModConfigEvent.Reloading event) {
if (event.getConfig().getType() == ModConfig.Type.COMMON) {
SPEC.setConfig(event.getConfig().getConfigData());
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public DarkModeEverywhere(IEventBus modEventBus, ModContainer modContainer) {
if (FMLEnvironment.dist == Dist.CLIENT){
new ClientProxy(modEventBus, modContainer);
}
modContainer.registerConfig(ModConfig.Type.CLIENT, DarkConfig.CLIENT.SPEC);
modEventBus.addListener(DarkConfig.CLIENT::onConfigReload);
modContainer.registerConfig(ModConfig.Type.STARTUP, DarkConfig.CLIENT.SPEC);
//modEventBus.addListener(DarkConfig.CLIENT::onConfigReload);
}

}

0 comments on commit 05f9e6d

Please sign in to comment.