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

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/creative/GeneralContractorCommands.java

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

revision 3203 by torben, Mon May 29 13:03:52 2017 UTC revision 3204 by torben, Thu Jun 1 13:18:05 2017 UTC
# Line 395  public class GeneralContractorCommands i Line 395  public class GeneralContractorCommands i
395    
396                  World world = loc.getWorld();                  World world = loc.getWorld();
397    
398                  int count = 0;                  
399                  for (int x=(playerX-radius); x<=(playerX+radius); x++) {                  for (int x=(playerX-radius); x<=(playerX+radius); x++) {
400                          for (int z=(playerZ-radius); z<=(playerZ+radius); z++) {                          for (int z=(playerZ-radius); z<=(playerZ+radius); z++) {
401    
402                                  int y_max = playerY+radius;                                  int y_max = playerY+radius;
403                                  //for (int y=playerY; y<=playerY+radius; y++) {                                  //for (int y=playerY; y<=playerY+radius; y++) {
404                                  for (int y=playerY; y<=y_max; y++) {                                  for (int y=playerY; y<=y_max; y++) {
405                                          count++;  
406                                          world.getBlockAt(x, y, z).setType(Material.AIR);                                          world.getBlockAt(x, y, z).setType(Material.AIR);
407                                                                                    
408                                  }                                  }
# Line 426  public class GeneralContractorCommands i Line 426  public class GeneralContractorCommands i
426    
427                  World world = loc.getWorld();                  World world = loc.getWorld();
428    
                 int count = 0;  
429                  for (int x=(playerX-radius); x<=(playerX+radius); x++) {                  for (int x=(playerX-radius); x<=(playerX+radius); x++) {
430                          for (int z=(playerZ-radius); z<=(playerZ+radius); z++) {                          for (int z=(playerZ-radius); z<=(playerZ+radius); z++) {
431    
432                                  //for (int y=playerY; y<=playerY+radius; y++) {                                  //for (int y=playerY; y<=playerY+radius; y++) {
433                                  for (int y=playerY; y<=Y_MAX; y++) {                                  for (int y=playerY; y<=Y_MAX; y++) {
                                         count++;  
434                                          world.getBlockAt(x, y, z).setType(Material.AIR);                                          world.getBlockAt(x, y, z).setType(Material.AIR);
435                                                                                    
436                                  }                                  }

Legend:
Removed from v.3203  
changed lines
  Added in v.3204

  ViewVC Help
Powered by ViewVC 1.1.20