@@ -32,7 +32,7 @@ public static InventoryAdaptor wrap(TileEntity capProvider, EnumFacing face) {
3232 TileEntity inter = capProvider .getWorldObj ().getTileEntity (capProvider .xCoord + f .offsetX , capProvider .yCoord + f .offsetY , capProvider .zCoord + f .offsetZ );
3333 if (!Config .noFluidPacket && !(inter instanceof TileFluidInterface || (inter instanceof TileCableBus && ((TileCableBus ) inter ).getPart (f .getOpposite ()) instanceof PartFluidInterface )))
3434 return InventoryAdaptor .getAdaptor (capProvider , f );
35- IInventory item = capProvider instanceof IInventory ? ( IInventory ) capProvider : null ;
35+ InventoryAdaptor item = InventoryAdaptor . getAdaptor ( capProvider , f ) ;
3636 IFluidHandler fluid = capProvider instanceof IFluidHandler ? (IFluidHandler ) capProvider : null ;
3737 return new FluidConvertingInventoryAdaptor (item , fluid , face );
3838 }
@@ -41,8 +41,8 @@ public static InventoryAdaptor wrap(TileEntity capProvider, EnumFacing face) {
4141 private final IFluidHandler invFluids ;
4242 private final ForgeDirection side ;
4343
44- public FluidConvertingInventoryAdaptor (@ Nullable IInventory invItems , @ Nullable IFluidHandler invFluids , EnumFacing facing ) {
45- this .invItems = invItems != null ? InventoryAdaptor . getAdaptor ( invItems , Util . from ( facing )) : null ;
44+ public FluidConvertingInventoryAdaptor (@ Nullable InventoryAdaptor invItems , @ Nullable IFluidHandler invFluids , EnumFacing facing ) {
45+ this .invItems = invItems ;
4646 this .invFluids = invFluids ;
4747 this .side = Util .from (facing );
4848 }
0 commit comments