mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-17 19:15:13 +00:00
Update buildscript & apply automatic formatting rules
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user