diff options
author | Alkalus <Draknyte1@hotmail.com> | 2020-05-27 18:33:53 +0100 |
---|---|---|
committer | Alkalus <Draknyte1@hotmail.com> | 2020-05-27 18:33:53 +0100 |
commit | 59c6a1bf700132d0f5b7da49f59b05ac8b9f2894 (patch) | |
tree | 7f06006b4000abbb4dd04ced14009ba334a8e983 /src/Java/gtPlusPlus/core/util | |
parent | 1813051f41ff12ce33be373e956a2bcc3d439669 (diff) | |
download | GT5-Unofficial-59c6a1bf700132d0f5b7da49f59b05ac8b9f2894.tar.gz GT5-Unofficial-59c6a1bf700132d0f5b7da49f59b05ac8b9f2894.tar.bz2 GT5-Unofficial-59c6a1bf700132d0f5b7da49f59b05ac8b9f2894.zip |
+ Added recipe for pine saplings.
+ Added tier info into Chemical Plant NEI handler.
+ Added custom NEI handlers for Dehydration and Reactor Fuel Processing Plant recipes.
% Adjusted output of Fluorite ore production recipes.
% Finished Work on Chemical Plant user manual.
$ Added another safety catch to the VFC GUI.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util')
-rw-r--r-- | src/Java/gtPlusPlus/core/util/Utils.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Java/gtPlusPlus/core/util/Utils.java b/src/Java/gtPlusPlus/core/util/Utils.java index 72b13b3067..982c55282e 100644 --- a/src/Java/gtPlusPlus/core/util/Utils.java +++ b/src/Java/gtPlusPlus/core/util/Utils.java @@ -735,11 +735,6 @@ public class Utils { } } - private static int sBookCount = 0; - - public static int getBookCount() { - return sBookCount; - } public static ItemStack getWrittenBook(final ItemStack aBook, final int aID, final String aMapping, final String aTitle, final String aAuthor, final String[] aPages) { @@ -753,8 +748,7 @@ public class Utils { if ((GT_Utility.isStringInvalid(aTitle)) || (GT_Utility.isStringInvalid(aAuthor)) || (aPages.length <= 0)) { return null; } - sBookCount += 1; - final int vMeta = (aID == -1 ? sBookCount : aID); + final int vMeta = aID; rStack = (aBook == null ? new ItemStack(ModItems.itemCustomBook, 1, vMeta) : aBook); final NBTTagCompound tNBT = new NBTTagCompound(); tNBT.setString("title", GT_LanguageManager.addStringLocalization( @@ -771,17 +765,19 @@ public class Utils { tNBTList.appendTag(new NBTTagString(aPages[i])); } else { + Logger.INFO("WARNING: String for written Book too long! -> "+aPages[i]); GT_Log.err.println(new StringBuilder().append("WARNING: String for written Book too long! -> ") .append(aPages[i]).toString()); } } else { + Logger.INFO("WARNING: Too much Pages for written Book! -> "+aTitle); GT_Log.err.println(new StringBuilder().append("WARNING: Too much Pages for written Book! -> ") .append(aTitle).toString()); break; } } tNBTList.appendTag(new NBTTagString(new StringBuilder().append("Credits to ").append(aAuthor) - .append(" for writing this Book. This was Book Nr. ").append(sBookCount) + .append(" for writing this Book. This was Book Nr. ").append(aID) .append(" at its creation. Gotta get 'em all!").toString())); tNBT.setTag("pages", tNBTList); rStack.setTagCompound(tNBT); |