mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fix some tiles outputting gas to the wrong side
This commit is contained in:
6 files changed
+5
-9
No files matched your search
@@ -113,7 +113,7 @@ public class TileEntityChemicalDissolutionChamber extends TileEntityMachine impl
|
||||
|
||||
prevEnergy = getEnergy();
|
||||
|
||||
TileUtils.emitGas(this, outputTank, gasOutput);
|
||||
TileUtils.emitGas(this, outputTank, gasOutput, MekanismUtils.getRight(facing));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ public class TileEntityChemicalOxidizer extends TileEntityOperationalMachine imp
|
||||
|
||||
prevEnergy = getEnergy();
|
||||
|
||||
TileUtils.emitGas(this, gasTank, gasOutput);
|
||||
TileUtils.emitGas(this, gasTank, gasOutput, MekanismUtils.getRight(facing));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ public class TileEntityChemicalWasher extends TileEntityMachine implements IGasH
|
||||
}
|
||||
}
|
||||
|
||||
TileUtils.emitGas(this, outputTank, gasOutput);
|
||||
TileUtils.emitGas(this, outputTank, gasOutput, MekanismUtils.getRight(facing));
|
||||
|
||||
prevEnergy = getEnergy();
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ public class TileEntityRotaryCondensentrator extends TileEntityMachine implement
|
||||
}
|
||||
} else if (mode == 1) {
|
||||
TileUtils.drawGas(inventory.get(0), gasTank);
|
||||
TileUtils.emitGas(this, gasTank, gasOutput);
|
||||
TileUtils.emitGas(this, gasTank, gasOutput, MekanismUtils.getLeft(facing));
|
||||
|
||||
if (FluidContainerUtils.isFluidContainer(inventory.get(2))) {
|
||||
FluidContainerUtils.handleContainerItemEmpty(this, fluidTank, 2, 3);
|
||||
|
||||
@@ -101,7 +101,7 @@ public class TileEntitySolarNeutronActivator extends TileEntityContainerBlock im
|
||||
setActive(false);
|
||||
}
|
||||
|
||||
TileUtils.emitGas(this, outputTank, gasOutput);
|
||||
TileUtils.emitGas(this, outputTank, gasOutput, facing);
|
||||
|
||||
// Every 20 ticks (once a second), send update to client. Note that this is a 50% reduction in network
|
||||
// traffic from previous implementation that send the update every 10 ticks.
|
||||
|
||||
@@ -77,10 +77,6 @@ public class TileUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static void emitGas(TileEntityBasicBlock tile, GasTank tank, int gasOutput) {
|
||||
emitGas(tile, tank, gasOutput, MekanismUtils.getRight(tile.facing));
|
||||
}
|
||||
|
||||
public static void emitGas(TileEntityBasicBlock tile, GasTank tank, int gasOutput, EnumFacing facing) {
|
||||
if (tank.getGas() != null) {
|
||||
GasStack toSend = new GasStack(tank.getGas().getGas(), Math.min(tank.getStored(), gasOutput));
|
||||
|
||||
Reference in new issue
Block a user