Void gases from machines on load if invalid, as discussed in #5502 (#5519)

This commit is contained in:
Richard Freimer authored and GitHub committed 2019-06-12 17:55:36 -04:00
1 parent d10a623e51
commit b49e45a03d
6 files changed
+25 -1

No files matched your search

@@ -191,6 +191,13 @@ 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;