From a641e66b8417ef72acca286a74b090ae759152d8 Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Mon, 24 Dec 2018 14:55:21 +0000 Subject: + Added a storage container for radioactive materials. $ Fixed Decayable dusts not working as intended, Closes #393. $ Made recycling recipe generation less verbose & more readable. $ Fixed issue with the Advanced Mufflers onConfigLoad function. --- src/Java/gtPlusPlus/core/util/minecraft/ItemUtils.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/Java/gtPlusPlus/core/util') diff --git a/src/Java/gtPlusPlus/core/util/minecraft/ItemUtils.java b/src/Java/gtPlusPlus/core/util/minecraft/ItemUtils.java index 1a3219bb90..fe344c70ed 100644 --- a/src/Java/gtPlusPlus/core/util/minecraft/ItemUtils.java +++ b/src/Java/gtPlusPlus/core/util/minecraft/ItemUtils.java @@ -333,18 +333,20 @@ public class ItemUtils { if (oredictName.toLowerCase().contains("dust")) { final String MaterialName = oredictName.toLowerCase().replace("dust", ""); final Materials m = Materials.get(MaterialName); - returnValue = getGregtechDust(m, amount); - if (returnValue != null) { - return returnValue; + if (m != null && m != Materials._NULL) { + returnValue = getGregtechDust(m, amount); + if (checkForInvalidItems(returnValue)) { + return returnValue; + } } } - - /*if (returnValue == null) { + if (returnValue == null) { returnValue = getItemStackOfAmountFromOreDict(oredictName, amount); if (ItemUtils.checkForInvalidItems(returnValue)) { return returnValue.copy(); } - }*/ + } + Logger.RECIPE(oredictName + " was not valid."); return null; } catch (final Throwable t) { @@ -760,7 +762,7 @@ public class ItemUtils { public static ItemStack getErrorStack(int mAmount) { //System.exit(1); try { - new GregtechException("Logging - [Issue #999]"); + //new GregtechException("Logging - [Issue #999]"); } catch (Throwable t) { t.printStackTrace(); -- cgit