--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/PowerMiner.java 2011/04/25 21:22:56 1392 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/PowerMiner.java 2011/05/18 19:00:26 1469 @@ -64,13 +64,20 @@ case 21: //lapis lazuli int count = rand.nextInt(5) + 4; return new ItemStack(351,count,(short)0, (byte)4); + case 27: + case 28: + return null; //instabreak drops powered and detector rails case 56: //diamond ore drops diamond return new ItemStack(264,1); + case 66: + return null; //instabreak drops rails case 73: case 74: - return new ItemStack(331,4); //redstone ore (both glowing and non-glowing) drops 4 redstone + return new ItemStack(331,4); //redstone ore (both glowing and non-glowing) drops 4 redstone + case 82: + return null; //instabreak drops clay from clayblock default: - return new ItemStack(b.getTypeId(), 1); + return new ItemStack(b.getTypeId(), 1,(short)0, b.getData()); } } @@ -80,8 +87,8 @@ if (! p.isOp() ) return; - if ( miners.contains(p.getName()) ) { - if (p.getItemInHand().getType() == Material.FEATHER) { + if (p.getItemInHand().getType() == Material.FEATHER) { + if ( miners.contains(p.getName()) ) { Block b = event.getBlock();