Fixed crash with getting flow rate
This commit is contained in:
parent
b056b97a9c
commit
04a81b09a3
1 changed files with 20 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue