/[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 1738 by torben, Sun Mar 18 10:19:19 2012 UTC revision 1743 by torben, Sun Mar 18 10:52:16 2012 UTC
# Line 110  public class TemplateCommand implements Line 110  public class TemplateCommand implements
110                                  lines++;                                  lines++;
111                                                                    
112                                  line = line.trim();                                  line = line.trim();
113                                    if (line.length() == 0)
114                                            continue;
115                                    
116                                  if (line.charAt(0) == '-')                                  if (line.charAt(0) == '-')
117                                          continue;                                          continue;
118                                                                    
# Line 121  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 166  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[x][y][z] );                                          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.1738  
changed lines
  Added in v.1743

  ViewVC Help
Powered by ViewVC 1.1.20