Skip to content

Commit

Permalink
Updated neoforge version
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Jul 12, 2024
1 parent eee4b1f commit 44b8d10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class EmojifulNeoForge {
public EmojifulNeoForge(Dist dist, IEventBus modBus, ModContainer container) {
RECIPE_SER.register(modBus);
RECIPE_TYPE.register(modBus);
createAndLoadConfigs(container, ModConfig.Type.CLIENT, ForgeConfigHelper.setup(new ModConfigSpec.Builder()), "emojiful-client.toml");
createAndLoadConfigs(container, ModConfig.Type.STARTUP, ForgeConfigHelper.setup(new ModConfigSpec.Builder()), "emojiful-client.toml");
modBus.addListener(this::handleClientSetup);
}

Expand All @@ -46,16 +46,6 @@ private void handleClientSetup(final FMLClientSetupEvent event) {

private static void createAndLoadConfigs(ModContainer modContainer, ModConfig.Type type, ModConfigSpec spec, String path) {
modContainer.registerConfig(type, spec, path);

final CommentedFileConfig configData = CommentedFileConfig.builder(FMLPaths.CONFIGDIR.get().resolve(path))
.preserveInsertionOrder()
.autoreload()
.writingMode(WritingMode.REPLACE)
.sync()
.build();

configData.load();
spec.setConfig(configData);
}

}
2 changes: 1 addition & 1 deletion NeoForge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ config = "emojiful.mixins.json"
[[dependencies.emojiful]]
modId="neoforge"
type="required"
versionRange="[20.4.190,)"
versionRange="[21.0.84-beta,)"
ordering="NONE"
side="CLIENT"
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Project
version=5.1.2
version=5.1.3
group=com.hrznstudio.emojiful

#Parchment
Expand All @@ -13,7 +13,7 @@ common_client_run_name=Common Client
common_server_run_name=Common Server

# NeoForge
neo_version=21.0.76-beta
neo_version=21.0.84-beta

# Forge
forge_version=49.0.31
Expand Down

0 comments on commit 44b8d10

Please sign in to comment.