mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-18 03:25:07 +00:00
Spotless autoformatter (#32)
* Fix editorconfig for language files * Add spotless autoformatting plugin * Autoformatting fixes * Update build.gradle timestamp
This commit is contained in:
1 parent
317e07e1cf
commit
2016e39dea
7 files changed
+56
-35
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user