mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 18:44:42 +00:00
change logic
This commit is contained in:
1 parent
fc6f964a5a
commit
b8d653e0d7
1 file changed
+10
-9
@@ -277,15 +277,16 @@ public class FluidConvertingInventoryAdaptor extends InventoryAdaptor {
|
||||
for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
|
||||
// Avoid sending stuff into itself me network
|
||||
TileEntity te = this.posInterface.getOffSet(dir).getTileEntity();
|
||||
if (te == null || !checkValidSide(te, dir)
|
||||
|| (isConduit(te) && (isItemConduit(te) || !isFluidConduitConnected(te, dir))))
|
||||
continue;
|
||||
final int result = checkItemFluids(this.getSideFluid(dir), this.getSideItem(dir), dir.getOpposite());
|
||||
if (result == 1) {
|
||||
return true;
|
||||
}
|
||||
if (result != 2) {
|
||||
anyValid = true;
|
||||
if (te != null && checkValidSide(te, dir)) {
|
||||
if (!isConduit(te) || (!isItemConduit(te) && isFluidConduitConnected(te, dir))) {
|
||||
final int result = checkItemFluids(this.getSideFluid(dir), this.getSideItem(dir), dir.getOpposite());
|
||||
if (result == 1) {
|
||||
return true;
|
||||
}
|
||||
if (result != 2) {
|
||||
anyValid = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Same here. if there is no fluid tank or item inventory existed, it shouldn't send stuff here.
|
||||
|
||||
Reference in new issue
Block a user