mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-12 00:07:29 +00:00
fail (#233)
This commit is contained in:
1 parent
dbbdf72230
commit
25133d8c3f
1 file changed
+2
-4
@@ -31,9 +31,7 @@ import com.glodblock.github.util.Util;
|
||||
|
||||
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;
|
||||
@@ -103,7 +101,7 @@ public class FluidConvertingInventoryAdaptor extends InventoryAdaptor {
|
||||
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;
|
||||
}
|
||||
@@ -112,7 +110,7 @@ public class FluidConvertingInventoryAdaptor extends InventoryAdaptor {
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user