Actually load & update config
This commit is contained in:
@ -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();
|
||||||
|
}
|
||||||
|
}
|
@ -42,6 +42,7 @@ public class Config {
|
|||||||
{
|
{
|
||||||
blockWither = json.get("blockWither").getAsBoolean();
|
blockWither = json.get("blockWither").getAsBoolean();
|
||||||
}
|
}
|
||||||
|
save();
|
||||||
}
|
}
|
||||||
catch (IOException exc)
|
catch (IOException exc)
|
||||||
{
|
{
|
||||||
|
@ -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"
|
||||||
|
Reference in New Issue
Block a user