mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
Fixed Hohlraum check crash
This commit is contained in:
1 parent
79d319cc87
commit
46eb5aa288
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user