aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNotAPenguin <michiel.vandeginste@gmail.com>2024-08-22 14:58:44 +0200
committerGitHub <noreply@github.com>2024-08-22 14:58:44 +0200
commit84598f5a183c3e87a8c3780d2bcbcd74fb06de1d (patch)
tree93c9b339a243a4cebe2addd6ac12f797177f2ea7 /src
parenta9dfc0fe81a0b89ea51d6cdfd1a3a960f1e2cc14 (diff)
downloadGT5-Unofficial-84598f5a183c3e87a8c3780d2bcbcd74fb06de1d.tar.gz
GT5-Unofficial-84598f5a183c3e87a8c3780d2bcbcd74fb06de1d.tar.bz2
GT5-Unofficial-84598f5a183c3e87a8c3780d2bcbcd74fb06de1d.zip
Make CAL only eat a single imprint instead of the entire stack (#2942)
* make cal only eat a single imprint instead of the entire stack * make sure to clear if empty
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_CircuitAssemblyLine.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_CircuitAssemblyLine.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_CircuitAssemblyLine.java
index 49986d9a1c..6bdd81bd72 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_CircuitAssemblyLine.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_CircuitAssemblyLine.java
@@ -228,7 +228,8 @@ public class GT_TileEntity_CircuitAssemblyLine extends
&& itemStack.getTagCompound() != null
&& this.type.equals(new NBTTagCompound())) {
this.type = itemStack.getTagCompound();
- this.mInventory[1] = null;
+ this.mInventory[1].stackSize -= 1;
+ if (this.mInventory[1].stackSize <= 0) this.mInventory[1] = null;
this.getBaseMetaTileEntity()
.issueBlockUpdate();
return true;