/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/SuperMiner.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/SuperMiner.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1584 by torben, Sun Jun 26 10:04:04 2011 UTC revision 1585 by torben, Thu Aug 4 19:34:01 2011 UTC
# Line 24  public class SuperMiner extends BlockLis Line 24  public class SuperMiner extends BlockLis
24                    
25          Set<String> miners = new HashSet<String>();          Set<String> miners = new HashSet<String>();
26    
27            final static int radius = 5;
28    
29          @Override          @Override
30          public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {          public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
31                                                    
# Line 77  public class SuperMiner extends BlockLis Line 79  public class SuperMiner extends BlockLis
79    
80                  Location l = location;                  Location l = location;
81    
82                  for (int x=-5; x<=5; x++) {                  for (int x=(radius*-1); x<=radius; x++) {
83                          for (int y=0; y<=5; y++) {                          for (int y=0; y<=radius; y++) {
84                                  for (int z=-5; z<=5; z++) {                                  for (int z=(radius*-1); z<=radius; z++) {
85    
86                                          Block b = world.getBlockAt( l.getBlockX()+x, l.getBlockY()+y, l.getBlockZ()+z);                                          Block b = world.getBlockAt( l.getBlockX()+x, l.getBlockY()+y, l.getBlockZ()+z);
87    

Legend:
Removed from v.1584  
changed lines
  Added in v.1585

  ViewVC Help
Powered by ViewVC 1.1.20