Skip to content

Commit

Permalink
Merge pull request #5230 from fishface60/fix-empty-addon-mts
Browse files Browse the repository at this point in the history
Recognise empty files in addons with .mts suffix as text files
  • Loading branch information
cwisniew authored Feb 13, 2025
2 parents ab44985 + 78b5032 commit 32fbc29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/net/rptools/maptool/model/Asset.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ public static Type fromMediaType(MediaType mediaType, String filename) {
yield Type.INVALID;
}

default -> Type.INVALID;
};
case "model" ->
switch (subType) {
case "vnd.mts" -> Type.TEXT;
default -> Type.INVALID;
};
default -> Type.INVALID;
Expand Down

0 comments on commit 32fbc29

Please sign in to comment.