mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
compare strings fixed
This commit is contained in:
@@ -266,7 +266,7 @@ public class DeckSerializer extends StorageReaderFolder<Deck> implements IItemSe
|
||||
file.delete();
|
||||
} else {
|
||||
String destFilename = result == null ? null : result.getBestFileName() + FILE_EXTENSION;
|
||||
if (file.getName() != destFilename) {
|
||||
if (!file.getName().equals(destFilename)) {
|
||||
file.renameTo(new File(file.getParentFile().getParentFile(), destFilename));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user