--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/SuperMiner.java 2011/06/24 11:13:59 1522 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/SuperMiner.java 2011/08/04 19:34:01 1585 @@ -24,6 +24,8 @@ Set miners = new HashSet(); + final static int radius = 5; + @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { @@ -77,15 +79,15 @@ Location l = location; - for (int x=-5; x<=5; x++) { - for (int y=0; y<=5; y++) { - for (int z=-5; z<=5; z++) { + for (int x=(radius*-1); x<=radius; x++) { + for (int y=0; y<=radius; y++) { + for (int z=(radius*-1); z<=radius; z++) { Block b = world.getBlockAt( l.getBlockX()+x, l.getBlockY()+y, l.getBlockZ()+z); int id = b.getTypeId(); - if (id == 1 || id == 2 || id == 3 || id == 4 || id == 8 || id == 9 || id == 10 || id == 11 || id == 13) { + if (id == 1 || id == 2 || id == 3 || id == 4 || id == 8 || id == 9 || id == 10 || id == 11 || id == 13 || id == 87) { b.setTypeId( 0 ); } }