Skip to content

Commit

Permalink
updated NeoForge to 21.0.94-beta
Browse files Browse the repository at this point in the history
- updated BucketLib to 1.21-4.1.0.0
- usage of NeoForge's config directory for default config
- fix startup crash
  • Loading branch information
cech12 committed Jul 14, 2024
1 parent 3d2d7b1 commit 5d8d708
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Forge Recommended Versioning](https://mcforge.readthedocs.io/en/latest/conventions/versioning/).

## [1.21-6.1.0.0] - 2024-07-14
### Changed
- updated NeoForge to 21.0.94-beta
- updated BucketLib to 1.21-4.1.0.0
- the `config` directory is used for the default configuration (NeoForge)

### Fixed
- crashed on startup with NeoForge (caused by a breaking change in 21.0.82-beta)

## [1.21-6.0.0.0] - 2024-06-21
### Changed
- Updated to Minecraft 1.21 (Fabric 0.100.3+1.21, Neoforge 21.0.20-beta)
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Project
group=de.cech12.ceramicbucket
mod_version=6.0.0.0
mod_version=6.1.0.0
mod_id=ceramicbucket
mod_name=Ceramic Bucket
mod_author=Cech12
Expand All @@ -30,13 +30,13 @@ forge_version_range=[51.0.16,)
forge_loader_version_range=[51,)

# NeoForge
neoforge_version=21.0.20-beta
neoforge_version_range=[21.0.20-beta,)
neoforge_version=21.0.94-beta
neoforge_version_range=[21.0.94-beta,)
neoforge_loader_version_range=[2,)

#Bucket Lib
bucketlib_version=1.21-4.0.0.1
bucketlib_version_range=[1.21-4.0.0.1,)
bucketlib_version=1.21-4.1.0.0
bucketlib_version_range=[1.21-4.1.0.0,)

# Gradle
org.gradle.jvmargs=-Xmx3G
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
package de.cech12.ceramicbucket.platform;

import com.electronwill.nightconfig.core.file.CommentedFileConfig;
import com.electronwill.nightconfig.core.io.WritingMode;
import de.cech12.ceramicbucket.Constants;
import de.cech12.ceramicbucket.platform.services.IConfigHelper;
import net.neoforged.fml.ModLoadingContext;
import net.neoforged.fml.config.ModConfig;
import net.neoforged.fml.loading.FMLConfig;
import net.neoforged.fml.loading.FMLPaths;
import net.neoforged.neoforge.common.ModConfigSpec;

import java.nio.file.Path;

/**
* The config service implementation for NeoForge.
*/
Expand Down Expand Up @@ -53,10 +46,6 @@ public class NeoForgeConfigHelper implements IConfigHelper {
@Override
public void init() {
ModLoadingContext.get().getActiveContainer().registerConfig(ModConfig.Type.SERVER, SERVER_CONFIG);
Path path = FMLPaths.GAMEDIR.get().resolve(FMLConfig.defaultConfigPath()).resolve(Constants.MOD_ID + "-server.toml");
final CommentedFileConfig configData = CommentedFileConfig.builder(path).sync().autosave().writingMode(WritingMode.REPLACE).build();
configData.load();
SERVER_CONFIG.setConfig(configData);
}

@Override
Expand Down

0 comments on commit 5d8d708

Please sign in to comment.