Fix IC2 electric items crashing the game if IC2 isn't loaded
This commit is contained in:
parent
cd4119151d
commit
6da2f8fd07
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue