Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 24 lines 737 B view raw
1package net.minecraft.server; 2 3import uk.betacraft.uberbukkit.Uberbukkit; 4 5public class ItemSpade extends ItemTool { 6 7 private static Block[] bk; 8 9 public ItemSpade(int i, EnumToolMaterial enumtoolmaterial) { 10 super(i, 1, enumtoolmaterial, bk); 11 } 12 13 public boolean a(Block block) { 14 return block == Block.SNOW ? true : block == Block.SNOW_BLOCK; 15 } 16 17 static { 18 if (Uberbukkit.getTargetPVN() < 12) { 19 bk = new Block[] { Block.GRASS, Block.DIRT, Block.SAND, Block.GRAVEL, Block.SNOW, Block.SNOW_BLOCK, Block.CLAY }; 20 } else { 21 bk = new Block[] { Block.GRASS, Block.DIRT, Block.SAND, Block.GRAVEL, Block.SNOW, Block.SNOW_BLOCK, Block.CLAY, Block.SOIL }; 22 } 23 } 24}