Skip to content

Commit

Permalink
Fix wireless data hatch on AAL (GTNewHorizons#3079)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss authored Sep 6, 2024
1 parent c817cc5 commit a710669
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/main/java/ggfab/mte/MTEAdvAssLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -715,20 +715,8 @@ public ArrayList<ItemStack> getDataItems(int state) {
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;
}
Expand Down

0 comments on commit a710669

Please sign in to comment.