Fixed crashing when ic2 is not installed

This commit is contained in:
modmuss50 2015-07-26 15:35:02 +01:00
parent d8e8f45993
commit f433aa706a
9 changed files with 19 additions and 17 deletions

View file

@ -41,7 +41,7 @@ public class ChargeHud
if (mc.inGameHasFocus || (mc.currentScreen != null && mc.gameSettings.showDebugInfo))
{
if (ConfigTechReborn.ShowChargeHud)
if (ConfigTechReborn.ShowChargeHud && ElectricItem.manager != null)
drawChargeHud(event.resolution);
}
}