Skip to content

Commit

Permalink
Merge branch 'main' into native
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenGnu committed Dec 20, 2024
2 parents 663b031 + 41c1fec commit 6693b51
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 6693b51

Please sign in to comment.