From 918d763dabd82d47db739a1b0a51c01f0803adc0 Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Tue, 5 Feb 2019 04:22:53 +0000 Subject: + Added Charge Packs, which can be worn in the Bauble belt slot. + Added more recipes for particle related content. + Added recipe for Hydrogen Plasma. + Added Plasma Tanks. + Added Alternative Fusion Reactor. + Added recipe for the Super Jukebox. % Updated Locale files. $ Hopefully made calls to possibly invalid ItemList values safer. $ Fixed Large Mixer not working with fluids correctly. $ Fixed ABS and Adv. EBF not allowing a muffler in the center of the top layer. $ Fixed Fusion bug, making all recipes take 4x longer than originally required. $ Fixed recipes using Redstone Alloy as a material in tiered recipes. (Makes ULV Energy Cores craftable again) $ Fixed Nano Healing Bauble. $ Fixed annoying low transfer rate of Railcraft. (This should be higher when playing with GT anyway, it's now 4x, disabled in ASM config). $ Fixed the fact that Portable tanks were still portable in GTNH. --- src/Java/gtPlusPlus/core/util/Utils.java | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/Java/gtPlusPlus/core/util') diff --git a/src/Java/gtPlusPlus/core/util/Utils.java b/src/Java/gtPlusPlus/core/util/Utils.java index 968de2f55a..eef768e799 100644 --- a/src/Java/gtPlusPlus/core/util/Utils.java +++ b/src/Java/gtPlusPlus/core/util/Utils.java @@ -31,7 +31,9 @@ import net.minecraft.util.IChatComponent; import net.minecraft.world.World; import gregtech.GT_Mod; +import gregtech.api.enums.ItemList; import gregtech.api.enums.Materials; +import gregtech.api.enums.OrePrefixes; import gregtech.api.enums.TC_Aspects; import gregtech.api.enums.TC_Aspects.TC_AspectStack; import gregtech.api.util.GT_LanguageManager; @@ -916,4 +918,25 @@ public class Utils { return false; } + public static ItemList getValueOfItemList(String string, ItemList aOther) { + try { + Method method = ItemList.class.getDeclaredMethod("values"); + Object obj = method.invoke(null); + String y = Arrays.toString((Object[]) obj); + String[] aCurrentItemsInList = y.split(","); + boolean found = false; + for (String g : aCurrentItemsInList) { + if (g.equals(string)) { + found = true; + break; + } + } + if (found) { + return ItemList.valueOf(string); + } + } + catch (Throwable t) {} + return aOther; + } + } -- cgit