Fix purification chamber being able to accept wrong gases directly from IGasItems #5502

Also improved handling overall for how IGasItem is treated by the GasConversionHandler, so that we better obey the gastank we are going to try and insert into
This commit is contained in:
pupnewfster committed 2019-06-08 11:28:38 -04:00
1 parent 33957bde59
commit 180183fcbd
7 files changed
+73 -89

No files matched your search

@@ -5,7 +5,6 @@ import java.util.Map;
import java.util.Map.Entry;
import javax.annotation.Nullable;
import mekanism.api.gas.Gas;
import mekanism.api.gas.GasStack;
import mekanism.common.InfuseStorage;
import mekanism.common.Mekanism;
import mekanism.common.block.states.BlockStateMachine.MachineType;
@@ -174,14 +173,6 @@ public interface IFactory {
return getRecipe(slotStack);
}
@Nullable
public GasStack getItemGas(ItemStack itemstack) {
if (fuelType == MachineFuelType.ADVANCED) {
return getTile().getItemGas(itemstack);
}
return null;
}
public int getSecondaryEnergyPerTick() {
if (fuelType == MachineFuelType.ADVANCED) {
return getTile().BASE_SECONDARY_ENERGY_PER_TICK;
@@ -200,13 +191,6 @@ public interface IFactory {
return fuelType == MachineFuelType.ADVANCED;
}
public boolean isValidGas(Gas gas) {
if (fuelType == MachineFuelType.ADVANCED) {
return getTile().isValidGas(gas);
}
return false;
}
public boolean hasRecipe(ItemStack itemStack) {
if (itemStack.isEmpty()) {
return false;