File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/main/java/gregtech/api/metatileentity/multiblock Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -149,11 +149,16 @@ private void resetTileAbilities() {
149149
150150 protected IMultipleTankHandler extendedImportFluidList (IMultipleTankHandler fluids ) {
151151 List <IFluidTank > tanks = new ArrayList <>(fluids .getFluidTanks ());
152+ // iterate import items to look for and tanks that we might have missed
153+ // honestly this might not be worth checking because
154+ // it might already be handled in ARL/MRL
152155 for (var handler : getAbilities (MultiblockAbility .IMPORT_ITEMS )) {
153156 if (handler instanceof IFluidTank tank ) {
154- tanks .add (tank );
157+ if (! tanks . contains ( tank )) tanks .add (tank );
155158 } else if (handler instanceof IMultipleTankHandler multipleTankHandler ) {
156- tanks .addAll (multipleTankHandler .getFluidTanks ());
159+ for (var tank : multipleTankHandler .getFluidTanks ()) {
160+ if (!tanks .contains (tank )) tanks .add (tank );
161+ }
157162 }
158163 }
159164
You can’t perform that action at this time.
0 commit comments