Fixed Hohlraum check crash
This commit is contained in:
parent
79d319cc87
commit
46eb5aa288
1 changed files with 2 additions and 1 deletions
|
@ -93,10 +93,11 @@ public class FusionReactor implements IFusionReactor
|
|||
if(controller != null)
|
||||
{
|
||||
ItemStack hohlraum = controller.inventory[0];
|
||||
|
||||
if(hohlraum != null && hohlraum.getItem() instanceof ItemHohlraum)
|
||||
{
|
||||
GasStack gasStack = ((ItemHohlraum)hohlraum.getItem()).getGas(hohlraum);
|
||||
return gasStack.getGas() == GasRegistry.getGas("fusionFuelDT") && gasStack.amount > 0;
|
||||
return gasStack != null && gasStack.getGas() == GasRegistry.getGas("fusionFuelDT") && gasStack.amount > 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue