Skip to content

Commit cef0ef3

Browse files
committed
Update FVTMFormatBase.java
1 parent a6861d3 commit cef0ef3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/net/fexcraft/app/fmt/porters/FVTMFormatBase.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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\ttextureX = " + compound.tx(null) + ";\n\t\ttextureY = " + 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

Comments
 (0)