Actually load & update config

This commit is contained in:
KäseToatz
2024-07-15 23:05:17 +02:00
parent cb53cc39fa
commit 049ff651a3
3 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,11 @@
package com.kasetoatz.noexplosiongrief;
import com.kasetoatz.noexplosiongrief.config.Config;
import net.fabricmc.api.ModInitializer;
public class NoExplosionGrief implements ModInitializer {
@Override
public void onInitialize() {
Config.load();
}
}

View File

@ -42,6 +42,7 @@ public class Config {
{ {
blockWither = json.get("blockWither").getAsBoolean(); blockWither = json.get("blockWither").getAsBoolean();
} }
save();
} }
catch (IOException exc) catch (IOException exc)
{ {

View File

@ -14,7 +14,9 @@
"license": "MIT", "license": "MIT",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {
"main": [] "main": [
"com.kasetoatz.noexplosiongrief.NoExplosionGrief"
]
}, },
"mixins": [ "mixins": [
"noexplosiongrief.mixins.json" "noexplosiongrief.mixins.json"