/[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 1725 by torben, Mon Mar 12 20:16:29 2012 UTC revision 1727 by torben, Mon Mar 12 20:22:27 2012 UTC
# Line 32  public class GeneralContractorCommands i Line 32  public class GeneralContractorCommands i
32                  //System.out.println( ">>" + label); //DEBUG                  //System.out.println( ">>" + label); //DEBUG
33                                    
34                  if ( label.equals("levelarea") ) {                  if ( label.equals("levelarea") ) {
35                          if (validateLevelOrFill(player, args) ) {                          if (validateLevelOrFill(player, label, args) ) {
36                                  levelArea(player, loc, args);                                  levelArea(player, loc, args);
37                          }                          }
38                          return true;                          return true;
# Line 40  public class GeneralContractorCommands i Line 40  public class GeneralContractorCommands i
40                                    
41                                    
42                  if ( label.equals("fillarea") ) {                  if ( label.equals("fillarea") ) {
43                          if (validateLevelOrFill(player, args) ) {                          if (validateLevelOrFill(player, label, args) ) {
44                                  fillArea(player, loc, args);                                  fillArea(player, loc, args);
45                          }                                }      
46                          return true;                          return true;
# Line 160  public class GeneralContractorCommands i Line 160  public class GeneralContractorCommands i
160                  for (int x=(playerX-radius); x<=(playerX+radius); x++) {                  for (int x=(playerX-radius); x<=(playerX+radius); x++) {
161                          for (int z=(playerZ-radius); z<=(playerZ+radius); z++) {                          for (int z=(playerZ-radius); z<=(playerZ+radius); z++) {
162                                  //int y = getGroundLevel(x,z) - 1;                                  //int y = getGroundLevel(x,z) - 1;
163                                  int y = world.getHighestBlockYAt(x, z);                                  int y = world.getHighestBlockYAt(x, z) - 1;
164                                                                    
165                                  world.getBlockAt(x, y, z).setTypeId(blockid);                                  world.getBlockAt(x, y, z).setTypeId(blockid);
166                          }                          }

Legend:
Removed from v.1725  
changed lines
  Added in v.1727

  ViewVC Help
Powered by ViewVC 1.1.20