From 85094ed324a6b0b7d3475898eb5b714e7e82223c Mon Sep 17 00:00:00 2001 From: coanghel Date: Wed, 27 Nov 2024 18:45:35 -0500 Subject: [PATCH] fix: capture module charges in cargo --- .../eve/jeveasset/gui/tabs/loadout/LoadoutsTab.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/nikr/eve/jeveasset/gui/tabs/loadout/LoadoutsTab.java b/src/main/java/net/nikr/eve/jeveasset/gui/tabs/loadout/LoadoutsTab.java index 010b52698..12208b70c 100644 --- a/src/main/java/net/nikr/eve/jeveasset/gui/tabs/loadout/LoadoutsTab.java +++ b/src/main/java/net/nikr/eve/jeveasset/gui/tabs/loadout/LoadoutsTab.java @@ -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 { @@ -455,6 +463,7 @@ private void writeCount(StringBuilder builder, Map modules) { builder.append("\r\n"); } else { builder.append(entry.getKey()); + builder.append("\r\n"); } } }