diff --git a/src/main/java/bartworks/system/material/gtenhancement/PlatinumSludgeOverHaul.java b/src/main/java/bartworks/system/material/gtenhancement/PlatinumSludgeOverHaul.java index f69a8c3f7d9..a2e3f114d4b 100644 --- a/src/main/java/bartworks/system/material/gtenhancement/PlatinumSludgeOverHaul.java +++ b/src/main/java/bartworks/system/material/gtenhancement/PlatinumSludgeOverHaul.java @@ -752,29 +752,45 @@ public static String displayRecipe(GTRecipe recipe) { // item inputs result.append("Item inputs: "); for (ItemStack itemstack : recipe.mInputs) { - result.append(itemstack.getUnlocalizedName()); - result.append(", "); + if (itemstack == null) { + result.append("nullstack, "); + } else { + result.append(itemstack.getUnlocalizedName()); + result.append(", "); + } } // fluid inputs result.append(" Fluid inputs: "); for (FluidStack fluidStack : recipe.mFluidInputs) { - result.append(fluidStack.getUnlocalizedName()); - result.append(", "); + if (fluidStack == null) { + result.append("nullstack, "); + } else { + result.append(fluidStack.getUnlocalizedName()); + result.append(", "); + } } // item outputs result.append(" Item outputs: "); for (ItemStack itemstack : recipe.mOutputs) { - result.append(itemstack.getUnlocalizedName()); - result.append(", "); + if (itemstack == null) { + result.append("nullstack, "); + } else { + result.append(itemstack.getUnlocalizedName()); + result.append(", "); + } } // fluid outputs result.append(" Fluid outputs: "); for (FluidStack fluidStack : recipe.mFluidOutputs) { - result.append(fluidStack.getUnlocalizedName()); - result.append(", "); + if (fluidStack == null) { + result.append("nullstack, "); + } else { + result.append(fluidStack.getUnlocalizedName()); + result.append(", "); + } } return result.toString(); diff --git a/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java b/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java index 55ed9296db1..1fa45ba0f35 100644 --- a/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java +++ b/src/main/java/goodgenerator/loader/NaquadahReworkRecipeLoader.java @@ -582,29 +582,45 @@ public static String displayRecipe(GTRecipe recipe) { // item inputs result.append("Item inputs: "); for (ItemStack itemstack : recipe.mInputs) { - result.append(itemstack.getUnlocalizedName()); - result.append(", "); + if (itemstack == null) { + result.append("nullstack, "); + } else { + result.append(itemstack.getUnlocalizedName()); + result.append(", "); + } } // fluid inputs result.append(" Fluid inputs: "); for (FluidStack fluidStack : recipe.mFluidInputs) { - result.append(fluidStack.getUnlocalizedName()); - result.append(", "); + if (fluidStack == null) { + result.append("nullstack, "); + } else { + result.append(fluidStack.getUnlocalizedName()); + result.append(", "); + } } // item outputs result.append(" Item outputs: "); for (ItemStack itemstack : recipe.mOutputs) { - result.append(itemstack.getUnlocalizedName()); - result.append(", "); + if (itemstack == null) { + result.append("nullstack, "); + } else { + result.append(itemstack.getUnlocalizedName()); + result.append(", "); + } } // fluid outputs result.append(" Fluid outputs: "); for (FluidStack fluidStack : recipe.mFluidOutputs) { - result.append(fluidStack.getUnlocalizedName()); - result.append(", "); + if (fluidStack == null) { + result.append("nullstack, "); + } else { + result.append(fluidStack.getUnlocalizedName()); + result.append(", "); + } } return result.toString();