Skip to content

Commit

Permalink
BC Facades update.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Cisien committed Feb 23, 2014
1 parent 977db52 commit e45f97f
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions src/main/java/tconstruct/plugins/imc/BuildcraftTransport.java
Expand Up @@ -32,37 +32,9 @@ public void init ()
{
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
Expand All @@ -73,7 +45,7 @@ public void postInit ()

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));
}

}

0 comments on commit e45f97f

Please sign in to comment.