Fix IC2 electric items crashing the game if IC2 isn't loaded

This commit is contained in:
Claire 2013-04-07 15:38:59 -06:00
parent cd4119151d
commit 6da2f8fd07

View file

@ -11,7 +11,7 @@ public abstract class ElectricAdapter {
}
if (stack.getItem() instanceof IItemElectric) {
return new UEElectricAdapter(stack);
} else if (stack.getItem() instanceof IElectricItem) {
} else if (stack.getItem() instanceof IElectricItem && Config.isIC2Loaded()) {
return new IC2ElectricAdapter(stack);
// } else if (stack.getItem() instanceof IChargeableItem) {
// return new TEElectricAdapter(stack);