--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/AdminDestroy.java 2011/04/23 13:48:35 1379 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/AdminDestroy.java 2011/04/23 14:40:49 1383 @@ -27,6 +27,7 @@ return false; if (! (sender instanceof Player) ) return false; + Player p = (Player) sender; if (destroyers.contains(p.getName())) { destroyers.remove( p.getName() ); @@ -49,7 +50,7 @@ case 3: return 0; //instabreak already throws dirt case 16: - return 264; + return 263; default: return b.getTypeId(); //don't throw any others } @@ -69,8 +70,8 @@ int blockid = getThrowBlock(b); if (blockid != 0) { - ItemStack stack = new ItemStack(b.getTypeId(), 1); - b.getWorld().dropItem(b.getLocation(), stack); + ItemStack stack = new ItemStack(blockid, 1); + b.getWorld().dropItemNaturally(b.getLocation(), stack); } }