change logic

This commit is contained in:
lordIcocain committed 2024-12-06 13:44:02 +02:00
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.