Update buildscript & apply automatic formatting rules

This commit is contained in:
Raven Szewczyk authored and Jason Mitchell committed 2022-06-27 10:23:18 -07:00
1 parent a7683b885d
commit f7a900e910
173 files changed
+4581 -5321

No files matched your search

@@ -2,12 +2,10 @@ package codechicken.nei.config;
import codechicken.lib.config.ConfigTagParent;
import codechicken.nei.NEIServerUtils;
import java.io.File;
import net.minecraft.nbt.NBTTagCompound;
import java.io.File;
public class ConfigSet
{
public class ConfigSet {
private final File nbtFile;
public NBTTagCompound nbt;
public final ConfigTagParent config;
@@ -21,12 +19,9 @@ public class ConfigSet
public void loadNBT() {
nbt = new NBTTagCompound();
try {
if (!nbtFile.getParentFile().exists())
nbtFile.getParentFile().mkdirs();
if (!nbtFile.exists())
nbtFile.createNewFile();
if (nbtFile.length() > 0)
nbt = NEIServerUtils.readNBT(nbtFile);
if (!nbtFile.getParentFile().exists()) nbtFile.getParentFile().mkdirs();
if (!nbtFile.exists()) nbtFile.createNewFile();
if (nbtFile.length() > 0) nbt = NEIServerUtils.readNBT(nbtFile);
} catch (Exception e) {
e.printStackTrace();
}