Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Jul 11, 2024
1 parent 91964a6 commit 64bfc0f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### Updates

- **Handled** exceptions silently and give semantic logs.
- **Added** serde support for `java.awt.Color`.
- **Used** `ModInitializer` instead of `ClientModInitializer`.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
maven-group = "band.kessokuteatime"
archives-name = "nightautoconfig"
mod = "1.0.1"
mod = "1.0.2"
loader = "fabric"

minecraft = "1.21"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
import band.kessokuteatime.nightautoconfig.config.base.ConfigType;
import me.shedaniel.autoconfig.AutoConfig;
import me.shedaniel.autoconfig.serializer.PartitioningSerializer;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.FabricLoader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class NightAutoConfig implements ClientModInitializer {
public class NightAutoConfig implements ModInitializer {
public static final String NAME = "Night Auto Config", ID = "nightautoconfig";
public static final Logger LOGGER = LoggerFactory.getLogger(ID);

@Override
public void onInitializeClient() {
public void onInitialize() {
if (FabricLoader.getInstance().isDevelopmentEnvironment()) {
LOGGER.warn(
"You're running {} in a development environment. This produces extra files for testing purposes.",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

"environment": "*",
"entrypoints": {
"client": [
"main": [
"band.kessokuteatime.nightautoconfig.NightAutoConfig"
]
},
Expand Down

0 comments on commit 64bfc0f

Please sign in to comment.