aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pers/gwyog/gtneioreplugin/util/GT5CFGHelper.java
diff options
context:
space:
mode:
authorConnor-Colenso <52056774+Connor-Colenso@users.noreply.github.com>2022-12-17 22:01:01 +0000
committerGitHub <noreply@github.com>2022-12-17 23:01:01 +0100
commit7cdbdb7e6ed5e5864bf2cebc9aff8b6941a8ed95 (patch)
treeaebd6439c1beb0510b1ccf5436fe074b19de9c5b /src/main/java/pers/gwyog/gtneioreplugin/util/GT5CFGHelper.java
parent457c977b76c4cdcaa223837a69409d5c8ad2e9a2 (diff)
downloadGT5-Unofficial-7cdbdb7e6ed5e5864bf2cebc9aff8b6941a8ed95.tar.gz
GT5-Unofficial-7cdbdb7e6ed5e5864bf2cebc9aff8b6941a8ed95.tar.bz2
GT5-Unofficial-7cdbdb7e6ed5e5864bf2cebc9aff8b6941a8ed95.zip
Helper hashmaps for black hole gen (#24)
* spotlessApply (#26) Co-authored-by: Connor-Colenso <52056774+Connor-Colenso@users.noreply.github.com> Co-authored-by: GitHub GTNH Actions <> * Fix issues (cherry picked from commit 9396914a59f2dfc47bf50dd3609a93fe0e72615e) * Fix issues (cherry picked from commit cc48e25e31535cdb00e10970d02ee08f1922bbff) * Fix more issues * Fix conflicts Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>
Diffstat (limited to 'src/main/java/pers/gwyog/gtneioreplugin/util/GT5CFGHelper.java')
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/util/GT5CFGHelper.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/util/GT5CFGHelper.java b/src/main/java/pers/gwyog/gtneioreplugin/util/GT5CFGHelper.java
index 1a62c31ec1..f6448660f0 100644
--- a/src/main/java/pers/gwyog/gtneioreplugin/util/GT5CFGHelper.java
+++ b/src/main/java/pers/gwyog/gtneioreplugin/util/GT5CFGHelper.java
@@ -16,6 +16,8 @@ import pers.gwyog.gtneioreplugin.GTNEIOrePlugin;
public class GT5CFGHelper {
+ public static String oreVeinNotInAnyDim = "Not available in any Galactic Dim!";
+
private static File F = GregTech_API.sWorldgenFile.mConfig.getConfigFile();
public static String GT5CFGSmallOres(String Veinname) {
@@ -59,7 +61,7 @@ public class GT5CFGHelper {
}
}
ret = ret.trim();
- if (ret.equals("") || ret.equals(" ")) ret = "Not available in any Galactic Dim!";
+ if (ret.equals("") || ret.equals(" ")) ret = oreVeinNotInAnyDim;
return ret;
}
@@ -173,7 +175,7 @@ public class GT5CFGHelper {
}
ret = ret.trim();
// FMLLog.info("ret:"+ret);
- if (ret.equals("") || ret.equals(" ")) ret = "Not available in any Galactic Dim!";
+ if (ret.equals("") || ret.equals(" ")) ret = oreVeinNotInAnyDim;
return ret;
} catch (IOException e) {
e.printStackTrace();