Spotless autoformatter (#32)

* Fix editorconfig for language files

* Add spotless autoformatting plugin

* Autoformatting fixes

* Update build.gradle timestamp
This commit is contained in:
Raven Szewczyk authored and GitHub committed 2022-06-23 20:53:03 +01:00
1 parent 317e07e1cf
commit 2016e39dea
7 files changed
+56 -35

No files matched your search

+5 -5
View File
@@ -1,10 +1,9 @@
package com.myname.mymodid;
import java.io.File;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;
import java.io.File;
public class Config {
private static class Defaults {
@@ -21,11 +20,12 @@ public class Config {
Configuration configuration = new Configuration(configFile);
configuration.load();
Property greetingProperty = configuration.get(Categories.general, "greeting", Defaults.greeting, "How shall I greet?");
Property greetingProperty =
configuration.get(Categories.general, "greeting", Defaults.greeting, "How shall I greet?");
greeting = greetingProperty.getString();
if(configuration.hasChanged()) {
if (configuration.hasChanged()) {
configuration.save();
}
}
}
}