Skip to content

Commit

Permalink
Fix (#6)
Browse files Browse the repository at this point in the history
* fix

* fix
  • Loading branch information
qwer523 authored Sep 7, 2024
1 parent 7c3f3cf commit d838887
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/example/examplemod/ExampleModCommon.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ public class ExampleModCommon implements ExampleMod {
public static ExampleModCommon instance;

public ExampleModCommon() {
super();
instance = this;
ExampleConfigHolder.init();
REGISTRATE.addDataGenerator(MOProviderTypes.MO_LANG, ExampleLangHandler::init);
REGISTRATE.registerRegistrate();

LOGGER.info("ExampleMod's Initialization Completed!");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.example.examplemod.config;

import com.example.examplemod.ExampleModCommon;
import com.example.examplemod.ExampleMod;

import dev.toma.configuration.Configuration;
import dev.toma.configuration.config.Config;
import dev.toma.configuration.config.format.ConfigFormats;

@Config(id = ExampleModCommon.MODID)
@Config(id = ExampleMod.MODID)
public class ExampleConfigHolder {
public static ExampleConfigHolder INSTANCE;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

public class ExampleLangHandler {

private ExampleLangHandler() {
/**/
}
private ExampleLangHandler() {}

public static void init(MOLangProvider provider) {}
}

0 comments on commit d838887

Please sign in to comment.