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

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

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

revision 1741 by torben, Sun Mar 18 10:40:25 2012 UTC revision 1743 by torben, Sun Mar 18 10:52:16 2012 UTC
# Line 124  public class TemplateCommand implements Line 124  public class TemplateCommand implements
124                                                                    
125                                  for (int i=0; i<elements.length; i++) {                                  for (int i=0; i<elements.length; i++) {
126                                          try {                                          try {
127                                                  int val = Integer.parseInt( elements[i] );                                                  String element = elements[i].trim();
128                                                    int val = Integer.parseInt( element );
129                                                                                                    
130                                                  array[x][y][i] = val;                                                  array[x][y][i] = val;
131                                                                                                    
# Line 169  public class TemplateCommand implements Line 170  public class TemplateCommand implements
170                                          int y = loc.getBlockY() + j;                                          int y = loc.getBlockY() + j;
171                                          int z = loc.getBlockZ() + k;                                          int z = loc.getBlockZ() + k;
172                                                                                    
173                                          world.getBlockAt(x, y, z).setTypeId(  template[i][j][k] );                                          int type = template[i][j][k];
174                                            
175                                            
176                                            plugin.getLogger().info(  String.format(  "Setting typeid at %d,%d,%d  to %d", x,y,z, type)  );
177                                            
178                                            world.getBlockAt(x, y, z).setTypeId( type  );
179                                  }                                  }
180                          }                          }
181                  }                  }

Legend:
Removed from v.1741  
changed lines
  Added in v.1743

  ViewVC Help
Powered by ViewVC 1.1.20