mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Merge pull request #4072 from thommy101/issue4067
Do not extract steam as a gas from a reactor - Fixes #4067
This commit is contained in:
commit
4d5ac6535f
1 file changed
+2
-10
@@ -198,14 +198,6 @@ public class TileEntityReactorPort extends TileEntityReactorBlock implements IFl
|
||||
@Override
|
||||
public GasStack drawGas(EnumFacing side, int amount, boolean doTransfer)
|
||||
{
|
||||
if(getReactor() != null)
|
||||
{
|
||||
if(getReactor().getSteamTank().getFluidAmount() > 0)
|
||||
{
|
||||
return new GasStack(GasRegistry.getGas("steam"), getReactor().getSteamTank().drain(amount, doTransfer).amount);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -218,7 +210,7 @@ public class TileEntityReactorPort extends TileEntityReactorBlock implements IFl
|
||||
@Override
|
||||
public boolean canDrawGas(EnumFacing side, Gas type)
|
||||
{
|
||||
return (type == GasRegistry.getGas("steam"));
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -491,4 +483,4 @@ public class TileEntityReactorPort extends TileEntityReactorBlock implements IFl
|
||||
{
|
||||
return EnumActionResult.PASS;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user