Fixed crash with getting flow rate

This commit is contained in:
Robert Seifert 2013-05-29 01:38:53 -04:00
parent b056b97a9c
commit 04a81b09a3

View file

@ -20,22 +20,29 @@ public class FluidHelper
{
if (stack != null)
{
String stackName = LiquidDictionary.findLiquidName(stack);
if (stackName.equalsIgnoreCase("UraniumHexafluoride"))
try
{
return 1000;
String stackName = LiquidDictionary.findLiquidName(stack);
if (stackName.equalsIgnoreCase("UraniumHexafluoride"))
{
return 1000;
}
else if (stackName.equalsIgnoreCase("steam"))
{
return 1000;
}
else if (stackName.equalsIgnoreCase("methane"))
{
return 1000;
}
else if (stackName.equalsIgnoreCase("lava"))
{
return 250;
}
}
else if (stackName.equalsIgnoreCase("steam"))
catch (Exception e)
{
return 1000;
}
else if (stackName.equalsIgnoreCase("methane"))
{
return 1000;
}
else if (stackName.equalsIgnoreCase("lava"))
{
return 250;
e.printStackTrace();
}
}
return 500;