Skip to content

Commit

Permalink
Merge branch 'main' into asset-log
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenGnu committed Dec 20, 2024
2 parents 9cc80d1 + 41c1fec commit d7ba13a
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,15 @@ private void exportEFT() {
count = 0L;
}
cargo.put(asset.getTypeName(), count + asset.getCount());
} else {
} else if (asset.getItem().getCategory().equals("Charge")){
Long count = cargo.get(asset.getTypeName());
if (count == null) {
count = 0L;
}
cargo.put(asset.getTypeName(), count + asset.getCount());
}

else {
String flag = asset.getFlag().replaceAll("\\d", "");
int index;
try {
Expand Down Expand Up @@ -455,6 +463,7 @@ private void writeCount(StringBuilder builder, Map<String, Long> modules) {
builder.append("\r\n");
} else {
builder.append(entry.getKey());
builder.append("\r\n");
}
}
}
Expand Down

0 comments on commit d7ba13a

Please sign in to comment.