From e45f97f4556aaa6a096a4100358b7889ca12ed91 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 23 Feb 2014 15:43:08 -0800 Subject: [PATCH] BC Facades update. Buildcraft 5.0.x will auto-detect normal blocks and add facades for them, so removing blocks that buildcraft won't accept anyway. Fixes the ItemStack sent to BC so the meta is incremented, and not the stack size. --- .../plugins/imc/BuildcraftTransport.java | 36 +++---------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/src/main/java/tconstruct/plugins/imc/BuildcraftTransport.java b/src/main/java/tconstruct/plugins/imc/BuildcraftTransport.java index 037901ed..f1999912 100644 --- a/src/main/java/tconstruct/plugins/imc/BuildcraftTransport.java +++ b/src/main/java/tconstruct/plugins/imc/BuildcraftTransport.java @@ -32,37 +32,9 @@ public class BuildcraftTransport implements ICompatPlugin { addFacade(TRepo.smeltery, sc); } - // Multi Brick + Fancy - for (int sc = 0; sc < 13; sc++) - { - addFacade(TRepo.multiBrick, sc); - } - for (int sc = 0; sc < 16; sc++) - { - addFacade(TRepo.multiBrickFancy, sc); - } - // Special Soil - for (int sc = 0; sc < 6; sc++) - { - addFacade(TRepo.craftedSoil, sc); - } - // Metal Storage - for (int sc = 0; sc < 11; sc++) - { - addFacade(TRepo.metalBlock, sc); - } - // Speed Block - for (int sc = 0; sc < 7; sc++) - { - addFacade(TRepo.speedBlock, sc); - } - // Hambone - addFacade(TRepo.meatBlock, 4); - addFacade(TRepo.meatBlock, 8); - - // Slime Gel - addFacade(TRepo.slimeGel, 0); - addFacade(TRepo.slimeGel, 1); + + addFacade(TRepo.searedBlock, 0); + addFacade(TRepo.searedBlockNether, 0); } @Override @@ -73,7 +45,7 @@ public class BuildcraftTransport implements ICompatPlugin private void addFacade (Block b, int meta) { - FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", new ItemStack(b, meta)); + FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", new ItemStack(b, 1, meta)); } }