aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Dickson <github@bombcar.com>2021-11-24 18:35:28 -0600
committerTom Dickson <github@bombcar.com>2021-11-24 18:35:28 -0600
commit152a1e1f63851929e6efddd2098fdc775b8ff64f (patch)
tree255e988587b9c0b00992cb25018dc290df888535 /src
parent81bc9e0e2dc60959acfce307ba5816a2eafe15b5 (diff)
downloadGT5-Unofficial-152a1e1f63851929e6efddd2098fdc775b8ff64f.tar.gz
GT5-Unofficial-152a1e1f63851929e6efddd2098fdc775b8ff64f.tar.bz2
GT5-Unofficial-152a1e1f63851929e6efddd2098fdc775b8ff64f.zip
fix /GTNewHorizons/GT-New-Horizons-Modpack#6308
Diffstat (limited to 'src')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/nbthandlers/GT_MetaTileEntity_Hatch_NbtConsumable.java7
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/chemplant/GregtechMTE_ChemicalPlant.java3
2 files changed, 2 insertions, 8 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/nbthandlers/GT_MetaTileEntity_Hatch_NbtConsumable.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/nbthandlers/GT_MetaTileEntity_Hatch_NbtConsumable.java
index d1ce55d3f2..b1bad97f0b 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/nbthandlers/GT_MetaTileEntity_Hatch_NbtConsumable.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/nbthandlers/GT_MetaTileEntity_Hatch_NbtConsumable.java
@@ -40,13 +40,6 @@ public abstract class GT_MetaTileEntity_Hatch_NbtConsumable extends GT_MetaTileE
mAllowDuplicateUsageTypes = aAllowDuplicateTypes;
}
- public GT_MetaTileEntity_Hatch_NbtConsumable(String aName, int aTier, int aInputSlots, String[] aDescription, boolean aAllowDuplicateTypes, ITexture[][][] aTextures) {
- super(aName, aTier, aInputSlots*2, aDescription[0], aTextures);
- mInputslotCount = getInputSlotCount();
- mTotalSlotCount = getInputSlotCount()*2;
- mAllowDuplicateUsageTypes = aAllowDuplicateTypes;
- }
-
@Override
public abstract ITexture[] getTexturesActive(ITexture aBaseTexture);
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/chemplant/GregtechMTE_ChemicalPlant.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/chemplant/GregtechMTE_ChemicalPlant.java
index 4a2747a3db..65470e0981 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/chemplant/GregtechMTE_ChemicalPlant.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/chemplant/GregtechMTE_ChemicalPlant.java
@@ -766,6 +766,7 @@ public class GregtechMTE_ChemicalPlant extends GregtechMeta_MultiBlockBase {
this.mOutputItems = tOutputItems;
this.mOutputFluids = tOutputFluids;
updateSlots();
+ for (GT_MetaTileEntity_Hatch_Catalysts h : mCatalystBuses) h.updateSlots();
// Play sounds (GT++ addition - GT multiblocks play no sounds)
startProcess();
@@ -960,7 +961,7 @@ public class GregtechMTE_ChemicalPlant extends GregtechMeta_MultiBlockBase {
if (damage >= getMaxCatalystDurability()) {
log("consume catalyst");
addOutput(CI.getEmptyCatalyst(1));
- aStack = null;
+ aStack.stackSize -= 1;
}
else {
log("damaging catalyst");