Skip to content

Commit

Permalink
Allow .schem to be uploaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
iceBear67 committed Jan 7, 2025
1 parent 43c7040 commit 9ea173c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ private void handleUploadSchematic(@NotNull Context context, String fileName, Li
}
if (fileName.length() <= 10) return;
var baseFileName = Helper.cleanFileName(fileName.substring(0, fileName.length() - 10));
log.info("Handling new file: {}", fileName);
if (fileName.endsWith(".schematic")) {

if (fileName.endsWith(".schematic") || fileName.endsWith(".schem")) {
Files.write(SCHEMATIC_DIR.resolve(baseFileName + ".schematic"), file.content().readAllBytes());
log.info("Saved " + fileName + " as a schematic.");
} else if (fileName.endsWith(".litematic")) {
Expand Down

0 comments on commit 9ea173c

Please sign in to comment.