Merge pull request #1205 from thatsIch/b-npe-on-random-smashing-button

Fixes NPE on random button smashing
This commit is contained in:
thatsIch
2015-04-05 20:18:10 +02:00
@@ -301,6 +301,8 @@ public class ItemMultiPart extends AEBaseItem implements IPartItem, IItemGroup
if( stack.getItem() == this ) if( stack.getItem() == this )
{ {
PartType pt = this.getTypeByStack( stack ); PartType pt = this.getTypeByStack( stack );
if ( pt != null )
{
switch( pt ) switch( pt )
{ {
case ImportBus: case ImportBus:
@@ -317,6 +319,7 @@ public class ItemMultiPart extends AEBaseItem implements IPartItem, IItemGroup
} }
} }
} }
}
if( group && importBus && exportBus ) if( group && importBus && exportBus )
return GuiText.IOBuses.getUnlocalized(); return GuiText.IOBuses.getUnlocalized();