Merge pull request #2133 from Prototik/solid-coolant

Fix #2131
This commit is contained in:
Adrian Siekierka 2014-10-31 13:18:14 +01:00
commit 5518ab7249

View file

@ -194,9 +194,11 @@ public class TileEngineIron extends TileEngineWithInventory implements IFluidHan
if (stack != null) {
FluidStack liquid = FluidContainerRegistry.getFluidForFilledItem(stack);
if (liquid == null && heat > MIN_HEAT * 2) {
ISolidCoolant coolant = BuildcraftFuelRegistry.coolant.getSolidCoolant(StackKey.stack(stack));
final ItemStack stackOne = stack.copy();
stackOne.stackSize = 1;
ISolidCoolant coolant = BuildcraftFuelRegistry.coolant.getSolidCoolant(StackKey.stack(stackOne));
if (coolant != null) {
liquid = coolant.getFluidFromSolidCoolant(stack);
liquid = coolant.getFluidFromSolidCoolant(stackOne);
}
}