BC Facades work again.

This commit is contained in:
AlgorithmX2
2014-05-04 14:54:07 -05:00
parent e25014fd5b
commit 0ed7cd7bb4
2 changed files with 7 additions and 10 deletions
+3 -1
View File
@@ -377,16 +377,18 @@ public class PartPlacement
return true;
}
private static IFacadePart isFacade(ItemStack held, ForgeDirection side)
public static IFacadePart isFacade(ItemStack held, ForgeDirection side)
{
if ( held.getItem() instanceof IFacadeItem )
return ((IFacadeItem) held.getItem()).createPartFromItemStack( held, side );
if ( AppEng.instance.isIntegrationEnabled( "BC" ) )
{
IBC bc = (IBC) AppEng.instance.getIntegration( "BC" );
if ( bc.isFacade( held ) )
return bc.createFacadePart( held, side );
}
return null;
}