diff --git a/src/dark/fluid/common/machines/BlockTank.java b/src/dark/fluid/common/machines/BlockTank.java index 9a9a868cc..9405f517b 100644 --- a/src/dark/fluid/common/machines/BlockTank.java +++ b/src/dark/fluid/common/machines/BlockTank.java @@ -25,7 +25,7 @@ import dark.fluid.common.pipes.TileEntityPipe; public class BlockTank extends BlockFM { - public static int tankVolume = 8; + public static int tankVolume = 16; public BlockTank() { @@ -101,23 +101,20 @@ public class BlockTank extends BlockFM return ret; } + @SuppressWarnings("unchecked") @Override public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List) { - par3List.add(new ItemStack(par1, 1, 15)); - } - - @Override - public boolean hasExtraConfigs() - { - // TODO Auto-generated method stub - return false; + for (FluidPartsMaterial data : FluidPartsMaterial.values()) + { + par3List.add(new ItemStack(this, 1, data.ordinal() * FluidPartsMaterial.spacing)); + } } @Override public void loadExtraConfigs(Configuration config) { - BlockTank.tankVolume = config.get("settings", "TankBucketVolume", 8, "Number of buckets each tank block can store, Settings this to zero is the same as one").getInt(); + BlockTank.tankVolume = config.get("settings", "TankBucketVolume", 16, "Number of buckets each tank block can store, Settings this to zero is the same as one").getInt(); } @@ -127,22 +124,4 @@ public class BlockTank extends BlockFM list.add(new Pair>("FluidTank", TileEntityTank.class)); } - - @Override - public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7) - { - if (!par1World.isRemote) - { - if (par1World.rand.nextFloat() <= par6) - { - int meta = 0; - if (par1World.getBlockTileEntity(par2, par3, par4) instanceof IColorCoded) - { - meta = ((IColorCoded) par1World.getBlockTileEntity(par2, par3, par4)).getColor().ordinal() & 15; - } - this.dropBlockAsItem_do(par1World, par2, par3, par4, new ItemStack(this.blockID, 1, meta)); - } - } - } - } diff --git a/src/dark/fluid/common/machines/TileEntityTank.java b/src/dark/fluid/common/machines/TileEntityTank.java index a0fa66467..ff88f2ba0 100644 --- a/src/dark/fluid/common/machines/TileEntityTank.java +++ b/src/dark/fluid/common/machines/TileEntityTank.java @@ -8,7 +8,7 @@ public class TileEntityTank extends TileEntityFluidNetworkTile { public TileEntityTank() { - super(16); + super(BlockTank.tankVolume); } @Override