From 3fae38c1e874c2f8e94526111583740549a561d8 Mon Sep 17 00:00:00 2001 From: Agarb Date: Sat, 5 Jan 2013 15:29:15 +0900 Subject: [PATCH] Solution for issue #544 If mining is disallow, then recipe of pump change --- common/buildcraft/BuildCraftFactory.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/BuildCraftFactory.java b/common/buildcraft/BuildCraftFactory.java index 71a98a5e..ad919001 100644 --- a/common/buildcraft/BuildCraftFactory.java +++ b/common/buildcraft/BuildCraftFactory.java @@ -218,13 +218,22 @@ public class BuildCraftFactory { new Object[] { "ipi", "gig", "dDd", Character.valueOf('i'), BuildCraftCore.ironGearItem, Character.valueOf('p'), Item.redstone, Character.valueOf('g'), BuildCraftCore.goldGearItem, Character.valueOf('d'), BuildCraftCore.diamondGearItem, Character.valueOf('D'), Item.pickaxeDiamond, }); + + CoreProxy.proxy.addCraftingRecipe(new ItemStack(pumpBlock), new Object[] { "T ", "W ", Character.valueOf('T'), tankBlock, Character.valueOf('W'), + miningWellBlock, }); + } + else { + CoreProxy.proxy.addCraftingRecipe(new ItemStack(pumpBlock), new Object[] { "iri", "iTi", "gpg", + Character.valueOf('r'), Item.redstone, + Character.valueOf('i'), Item.ingotIron, + Character.valueOf('T'), tankBlock, + Character.valueOf('g'), BuildCraftCore.ironGearItem, + Character.valueOf('p'), BuildCraftTransport.pipeLiquidsGold }); } CoreProxy.proxy.addCraftingRecipe(new ItemStack(autoWorkbenchBlock), new Object[] { " g ", "gwg", " g ", Character.valueOf('w'), Block.workbench, Character.valueOf('g'), BuildCraftCore.woodenGearItem }); - CoreProxy.proxy.addCraftingRecipe(new ItemStack(pumpBlock), new Object[] { "T ", "W ", Character.valueOf('T'), tankBlock, Character.valueOf('W'), - miningWellBlock, }); CoreProxy.proxy.addCraftingRecipe(new ItemStack(tankBlock), new Object[] { "ggg", "g g", "ggg", Character.valueOf('g'), Block.glass, });