aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbotn365 <42187820+botn365@users.noreply.github.com>2021-02-26 04:35:15 +0100
committerGitHub <noreply@github.com>2021-02-26 04:35:15 +0100
commit1c4806d0c259a54f710071ba80bbd28b1c37ac67 (patch)
tree9e66a6b2e416a247b947fdbe5e53f7149cbbe028
parent028ab4af3dfdfb61d5d7312ea11e083af031ca0a (diff)
downloadGT5-Unofficial-1c4806d0c259a54f710071ba80bbd28b1c37ac67.tar.gz
GT5-Unofficial-1c4806d0c259a54f710071ba80bbd28b1c37ac67.tar.bz2
GT5-Unofficial-1c4806d0c259a54f710071ba80bbd28b1c37ac67.zip
fix running asslinecrash on data hatch break
fix that when a fully formed assline with data hatch and when the data hatch would be replaced the onRunningTick would crash and stop the assline from ticking the recipe progression
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java
index c90df2a7a7..c13d537119 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java
@@ -253,6 +253,7 @@ public class GT_MetaTileEntity_AssemblyLine
}
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
+ mDataAccessHatches.clear();
int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;
int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
if (xDir != 0) {
@@ -435,4 +436,4 @@ public class GT_MetaTileEntity_AssemblyLine
public boolean explodesOnComponentBreak(ItemStack aStack) {
return false;
}
-} \ No newline at end of file
+}