/[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 1756 by torben, Mon Mar 19 10:18:44 2012 UTC revision 1758 by torben, Mon Mar 19 15:04:57 2012 UTC
# 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                                                                    
# Line 218  public class TemplateCommand implements Line 218  public class TemplateCommand implements
218    
219                                          int type = template[i][j][k].id;                                          int type = template[i][j][k].id;
220                                          byte data = (byte) template[i][j][k].subId;                                          byte data = (byte) template[i][j][k].subId;
221                                            
222                                            if (type == -1) {
223                                                    continue;
224                                            }
225    
226                                          //plugin.getLogger().info(  String.format(  "Setting typeid at %d,%d,%d  to %d", x,y,z, type)  );                                          //plugin.getLogger().info(  String.format(  "Setting typeid at %d,%d,%d  to %d", x,y,z, type)  );
227    

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

  ViewVC Help
Powered by ViewVC 1.1.20