Minor patch to allow other mo blocks to remove facades the same was as BC Pipes.
This commit is contained in:
parent
b78bee2d9f
commit
3230bcac51
1 changed files with 6 additions and 0 deletions
|
@ -140,6 +140,12 @@ public class ItemFacade extends ItemBuildCraft {
|
||||||
return ((encoded & 0xFFF0) >>> 4);
|
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) {
|
public static void addFacade(ItemStack itemStack) {
|
||||||
allFacades.add(new ItemStack(BuildCraftTransport.facadeItem, 1, ItemFacade.encode(itemStack.itemID, itemStack.getItemDamage())));
|
allFacades.add(new ItemStack(BuildCraftTransport.facadeItem, 1, ItemFacade.encode(itemStack.itemID, itemStack.getItemDamage())));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue