/[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 1757 by torben, Mon Mar 19 15:03:47 2012 UTC revision 1759 by torben, Mon Mar 19 20:21:14 2012 UTC
# Line 120  public class TemplateCommand implements Line 120  public class TemplateCommand implements
120                          if (line.length() == 0)                          if (line.length() == 0)
121                                  continue;                                  continue;
122    
123                          if (line.charAt(0) == '-')                          if (line.charAt(0) == '#')
124                                  continue;                                  continue;
125                                                    
126                          if ( y >= ysize) {                          if ( y >= ysize) {
# Line 145  public class TemplateCommand implements Line 145  public class TemplateCommand implements
145                                          throw new Exception( "Template: invalid value on line " + lines + ": " + element[0] );                                          throw new Exception( "Template: invalid value on line " + lines + ": " + element[0] );
146                                  }                                  }
147                                                                    
148                                  if (val < 0 || val>255) {                                  if (val < -1 || val>255) {
149                                          throw new Exception( "Template: invalid value on line " + lines + ": " + val );                                          throw new Exception( "Template: invalid value on line " + lines + ": " + val );
150                                  }                                  }
151                                                                    

Legend:
Removed from v.1757  
changed lines
  Added in v.1759

  ViewVC Help
Powered by ViewVC 1.1.20