mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
This commit is contained in:
1 parent
d10a623e51
commit
b49e45a03d
6 files changed
+25
-1
No files matched your search
@@ -474,7 +474,7 @@ public class TileEntityFactory extends TileEntityMachine implements IComputerInt
|
||||
@Nullable
|
||||
public GasStack getItemGas(ItemStack itemStack) {
|
||||
if (recipeType.getFuelType() == MachineFuelType.ADVANCED) {
|
||||
return GasConversionHandler.getItemGas(itemStack, gasTank, recipeType.getTile()::isValidGas);
|
||||
return GasConversionHandler.getItemGas(itemStack, gasTank, recipeType::isValidGas);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -749,6 +749,7 @@ public class TileEntityFactory extends TileEntityMachine implements IComputerInt
|
||||
progress[i] = nbtTags.getInteger("progress" + i);
|
||||
}
|
||||
gasTank.read(nbtTags.getCompoundTag("gasTank"));
|
||||
GasUtils.clearIfInvalid(gasTank, recipeType::isValidGas);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
||||
Reference in new issue
Block a user