aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaya <10861407+serenibyss@users.noreply.github.com>2024-09-05 21:12:26 -0500
committerGitHub <noreply@github.com>2024-09-05 21:12:26 -0500
commita710669b398402316e62d5f50143171ad7c92e90 (patch)
tree95bfe92cbae3e48177a8021bafdbdda45d7d2213 /src
parentc817cc5caa82d02cb02d98962b4b8cbec521c7a0 (diff)
downloadGT5-Unofficial-a710669b398402316e62d5f50143171ad7c92e90.tar.gz
GT5-Unofficial-a710669b398402316e62d5f50143171ad7c92e90.tar.bz2
GT5-Unofficial-a710669b398402316e62d5f50143171ad7c92e90.zip
Fix wireless data hatch on AAL (#3079)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/ggfab/mte/MTEAdvAssLine.java16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/main/java/ggfab/mte/MTEAdvAssLine.java b/src/main/java/ggfab/mte/MTEAdvAssLine.java
index c1fd180b92..941f42e341 100644
--- a/src/main/java/ggfab/mte/MTEAdvAssLine.java
+++ b/src/main/java/ggfab/mte/MTEAdvAssLine.java
@@ -715,20 +715,8 @@ public class MTEAdvAssLine extends MTEExtendedPowerMultiBlockBase<MTEAdvAssLine>
if (GTUtility.isStackValid(mInventory[1]) && isCorrectDataItem(mInventory[1], state)) {
rList.add(mInventory[1]);
}
- for (MTEHatchDataAccess tHatch : mDataAccessHatches) {
- if (tHatch.isValid()) {
- for (int i = 0; i < tHatch.getBaseMetaTileEntity()
- .getSizeInventory(); i++) {
- if (tHatch.getBaseMetaTileEntity()
- .getStackInSlot(i) != null && isCorrectDataItem(
- tHatch.getBaseMetaTileEntity()
- .getStackInSlot(i),
- state))
- rList.add(
- tHatch.getBaseMetaTileEntity()
- .getStackInSlot(i));
- }
- }
+ for (MTEHatchDataAccess tHatch : filterValidMTEs(mDataAccessHatches)) {
+ rList.addAll(tHatch.getInventoryItems(stack -> isCorrectDataItem(stack, state)));
}
return rList;
}