Skip to content

Commit

Permalink
Fix PrAss not working with stocking bus notifications (#3730)
Browse files Browse the repository at this point in the history
Co-authored-by: Sampsa <[email protected]>
  • Loading branch information
S4mpsa and Sampsa authored Dec 30, 2024
1 parent ec9bc1d commit 34a7bc7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
import gregtech.api.util.MultiblockTooltipBuilder;
import gregtech.api.util.OverclockCalculator;
import gregtech.common.tileentities.machines.IDualInputHatch;
import gregtech.common.tileentities.machines.ISmartInputHatch;
import mcp.mobius.waila.api.IWailaConfigHandler;
import mcp.mobius.waila.api.IWailaDataAccessor;
import tectech.thing.metaTileEntity.hatch.MTEHatchEnergyMulti;
Expand Down Expand Up @@ -179,6 +180,12 @@ public boolean addToPAssList(IGregTechTileEntity aTileEntity, int aBaseCasingInd
if (aMetaTileEntity == null) {
return false;
}
if (aMetaTileEntity instanceof ISmartInputHatch hatch) {
// Only add them to be iterated if enabled for performance reasons
if (hatch.doFastRecipeCheck()) {
mSmartInputHatches.add(hatch);
}
}
if (aMetaTileEntity instanceof MTEHatchInput) {
return mInputHatches.add((MTEHatchInput) aMetaTileEntity);
}
Expand Down

0 comments on commit 34a7bc7

Please sign in to comment.