/[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 1753 by torben, Mon Mar 19 08:59:33 2012 UTC revision 1756 by torben, Mon Mar 19 10:18:44 2012 UTC
# Line 122  public class TemplateCommand implements Line 122  public class TemplateCommand implements
122    
123                          if (line.charAt(0) == '-')                          if (line.charAt(0) == '-')
124                                  continue;                                  continue;
125                            
126                            if ( y >= ysize) {
127                                    throw new Exception( "Template: found more levels in file than specified in header" );
128                            }
129    
130                          String elements[] = line.split(",");                          String elements[] = line.split(",");
131                          if (elements.length != zsize) {                          if (elements.length != zsize) {
# Line 224  public class TemplateCommand implements Line 228  public class TemplateCommand implements
228                                                          continue;                                                          continue;
229                                                  if (type == 68) // sign                                                  if (type == 68) // sign
230                                                          continue;                                                          continue;
231                                                    if (type == 65) // ladder
232                                                            continue;
233                                                    if (type == 67) // steps
234                                                            continue;                                              
235                                          }                                          }
236                                                                                    
237                                          world.getBlockAt(x, y, z).setTypeIdAndData(type, data, true);                                          world.getBlockAt(x, y, z).setTypeIdAndData(type, data, true);

Legend:
Removed from v.1753  
changed lines
  Added in v.1756

  ViewVC Help
Powered by ViewVC 1.1.20