Skip to content

Commit

Permalink
fail (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordIcocain authored Oct 22, 2024
1 parent dbbdf72 commit 25133d8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@

import appeng.api.config.FuzzyMode;
import appeng.api.config.InsertionMode;
import appeng.api.config.Settings;
import appeng.api.config.Upgrades;
import appeng.api.config.YesNo;
import appeng.api.parts.IPart;
import appeng.helpers.DualityInterface;
import appeng.helpers.IInterfaceHost;
Expand Down Expand Up @@ -103,7 +101,7 @@ public static InventoryAdaptor wrap(TileEntity capProvider, ForgeDirection face)
return InventoryAdaptor.getAdaptor(capProvider, face);
if (InventoryAdaptor.getAdaptor(capProvider, face) == null) {
if (capProvider instanceof IFluidHandler tank) {
if (!(tank.getTankInfo(face).length > 0)) return null;
if (tank.getTankInfo(face) == null || !(tank.getTankInfo(face).length > 0)) return null;
} else {
return null;
}
Expand All @@ -112,7 +110,7 @@ public static InventoryAdaptor wrap(TileEntity capProvider, ForgeDirection face)
IFluidHandler fluid = capProvider instanceof IFluidHandler ? (IFluidHandler) capProvider : null;
boolean onmi = false;
if (inter instanceof TileInterface in) {
if (in.getConfigManager().getSetting(Settings.BLOCK) == YesNo.NO) onmi = in.getTargets().size() > 1;
onmi = in.getTargets().size() > 1;
}
return new FluidConvertingInventoryAdaptor(capProvider, item, fluid, face, new BlockPos(inter), onmi);
}
Expand Down

0 comments on commit 25133d8

Please sign in to comment.