@@ -63,7 +63,9 @@ public String exportModel(GroupCompound compound, File file, ArrayList<TurboList
6363 pergroupinit = settings .get ("per_group_init" ).getBooleanValue ();
6464 StringBuffer buffer = new StringBuffer ();
6565 buffer .append (getTopCommentLine ());
66- if (settings .get ("per_group_init" ).getBooleanValue ()) buffer .append ("//Using PER-GROUP-INIT mode with limit '" + settings .get ("max_pg_init_count" ).getValue () + "'!\n " );
66+ if (settings .get ("per_group_init" ).getBooleanValue ()){
67+ buffer .append ("//Using PER-GROUP-INIT mode with limit '" + settings .get ("max_pg_init_count" ).getValue () + "'!\n " );
68+ }
6769 buffer .append (getPackageLine ());
6870 appendImports (buffer );
6971 buffer .append ("/** This file was exported via the " + getTitle () + " of<br>\n " );
@@ -82,7 +84,8 @@ public String exportModel(GroupCompound compound, File file, ArrayList<TurboList
8284 buffer .append (tab2 + "super();\n \t \t textureX = " + compound .tx (null ) + ";\n \t \t textureY = " + compound .ty (null ) + ";\n " );
8385 for (String cr : compound .getAuthors ()){
8486 buffer .append (tab2 + "addToCreators(\" " + cr + "\" );\n " );//TODO add "uuid" of logged in users if available;
85- } buffer .append (tab2 + "//\n " );
87+ }
88+ buffer .append (tab2 + "//\n " );
8689 if (pergroupinit ){
8790 int count = settings .get ("max_pg_init_count" ).getValue ();
8891 for (TurboList list : groups ){
@@ -98,7 +101,8 @@ public String exportModel(GroupCompound compound, File file, ArrayList<TurboList
98101 //
99102 for (TurboList list : groups ){
100103 if (list .size () > count ){
101- int subs = list .size () / count ; if (list .size () % count != 0 ) subs ++;
104+ int subs = list .size () / count ;
105+ if (list .size () % count != 0 ) subs ++;
102106 for (int i = 0 ; i < subs ; i ++){
103107 buffer .append (tab + "private final void initGroup_" + list .exportID () + i + "(){\n " );
104108 int j = i * count , k = (i + 1 ) * count ;
0 commit comments