Minor patch to allow other mo blocks to remove facades the same was as BC Pipes.

This commit is contained in:
AlgorithmX2 2013-04-07 15:05:01 -05:00
parent b78bee2d9f
commit 3230bcac51

View file

@ -140,6 +140,12 @@ public class ItemFacade extends ItemBuildCraft {
return ((encoded & 0xFFF0) >>> 4);
}
@Override
public boolean shouldPassSneakingClickToBlock(World worldObj, int x, int y, int z ) {
// Simply send shift click to the pipe / mod block.
return true;
}
public static void addFacade(ItemStack itemStack) {
allFacades.add(new ItemStack(BuildCraftTransport.facadeItem, 1, ItemFacade.encode(itemStack.itemID, itemStack.getItemDamage())));