Skip to content

Commit

Permalink
Merge pull request #4988 from SJuliez/load-cache-from-zip-bug
Browse files Browse the repository at this point in the history
MechSummaryCache: fix not  loading from zip
  • Loading branch information
SJuliez authored Dec 31, 2023
2 parents 4a3a3d6 + 55e779a commit 26860a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion megamek/src/megamek/common/MechSummaryCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,8 @@ private boolean loadMechsFromDirectory(Vector<MechSummary> vMechs,
}
if (!f.getName().toLowerCase().endsWith(".mtf") && !f.getName().toLowerCase().endsWith(".blk")
&& !f.getName().toLowerCase().endsWith(".hmp") && !f.getName().toLowerCase().endsWith(".hmv")
&& !f.getName().toLowerCase().endsWith(".mep") && !f.getName().toLowerCase().endsWith(".tdb")) {
&& !f.getName().toLowerCase().endsWith(".mep") && !f.getName().toLowerCase().endsWith(".tdb")
&& !f.getName().toLowerCase().endsWith(".zip")) {
continue;
}
if (f.getName().indexOf('.') == -1) {
Expand Down

0 comments on commit 26860a5

Please sign in to comment.