Fixed: Duplicate pack path message on compound scripts

This commit is contained in:
Jindra Petřík
2024-08-03 08:59:29 +02:00
parent 6b3f6ad00f
commit a98d02f5d3
2 changed files with 3 additions and 2 deletions

View File

@@ -2228,9 +2228,9 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
private List<ScriptPack> uniqueAS3Packs(List<ScriptPack> packs) {
List<ScriptPack> ret = new ArrayList<>();
Set<ClassPath> classPaths = new HashSet<>();
for (ScriptPack item : packs) {
for (ScriptPack item : packs) {
ClassPath key = item.getClassPath();
if (classPaths.contains(key)) {
if (classPaths.contains(key) && item.isSimple) {
logger.log(Level.SEVERE, "Duplicate pack path found ({0})!", key);
} else {
classPaths.add(key);