aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2018-03-02 14:02:36 +1000
committerJordan Byrne <draknyte1@hotmail.com>2018-03-02 14:02:36 +1000
commit3fa1a63540b9bd279d6ac1c91e37c4eb29b024a1 (patch)
tree5fb516914603b4560877de798b9751343420b937
parent47a2ec5babcab6c42d9c74370aca260838a25401 (diff)
parente21a47f596f194253d17c4a85ab2e5e8b9a4f256 (diff)
downloadGT5-Unofficial-3fa1a63540b9bd279d6ac1c91e37c4eb29b024a1.tar.gz
GT5-Unofficial-3fa1a63540b9bd279d6ac1c91e37c4eb29b024a1.tar.bz2
GT5-Unofficial-3fa1a63540b9bd279d6ac1c91e37c4eb29b024a1.zip
Merge branch 'master' of https://github.com/draknyte1/GTplusplus
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
index bea37c476f..2643b0e9dd 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
@@ -172,6 +172,7 @@ GT_MetaTileEntity_MultiBlockBase {
int slotsNeeded = aRecipe.mOutputs.length;
for (final ItemStack tRecipeOutput: aRecipe.mOutputs) {
+ if (tRecipeOutput == null) continue;
int amount = tRecipeOutput.stackSize * aParallelRecipes;
for (final ItemStack tBusStack : tBusStacks) {
if (GT_Utility.areStacksEqual(tBusStack, tRecipeOutput)) {
@@ -187,6 +188,7 @@ GT_MetaTileEntity_MultiBlockBase {
// For each output fluid, make sure an output hatch can accept it.
for (FluidStack tRecipeFluid: aRecipe.mFluidOutputs) {
+ if (tRecipeFluid == null) continue;
boolean tCanBufferFluid = false;
int tRecipeAmount = tRecipeFluid.amount;
for (final GT_MetaTileEntity_Hatch_Output tHatch : this.mOutputHatches) {
@@ -425,7 +427,7 @@ GT_MetaTileEntity_MultiBlockBase {
}
if (aBaseMetaTileEntity.isServerSide()) {
- if (mUpdate == 0 || --this.mStartUpCheck == 0) {
+ if (mUpdate == 0 || this.mStartUpCheck == 0) {
this.mChargeHatches.clear();
this.mDischargeHatches.clear();
}