Null Check.
This commit is contained in:
parent
62166f1e94
commit
f6a132e19e
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer
|
|||
partChanged();
|
||||
return ForgeDirection.UNKNOWN;
|
||||
}
|
||||
else if ( !(bp instanceof IPartCable) && side != ForgeDirection.UNKNOWN )
|
||||
else if ( bp != null && !(bp instanceof IPartCable) && side != ForgeDirection.UNKNOWN )
|
||||
{
|
||||
IPart cable = getPart( ForgeDirection.UNKNOWN );
|
||||
if ( cable != null && !bp.canBePlacedOn( ((IPartCable) cable).supportsBuses() ) )
|
||||
|
|
Loading…
Reference in a new issue