mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Shh checkstyle, I'm a C# dev now.
This commit is contained in:
parent
7c89ece96e
commit
a22b5535fe
@ -315,8 +315,7 @@ public final class WorldEdit {
|
|||||||
private File getSafeFileWithExtension(File dir, String filename, String extension) {
|
private File getSafeFileWithExtension(File dir, String filename, String extension) {
|
||||||
if (extension != null) {
|
if (extension != null) {
|
||||||
int dot = filename.lastIndexOf('.');
|
int dot = filename.lastIndexOf('.');
|
||||||
if (dot < 0 || !filename.substring(dot).equalsIgnoreCase(extension))
|
if (dot < 0 || !filename.substring(dot).equalsIgnoreCase(extension)) {
|
||||||
{
|
|
||||||
filename += "." + extension;
|
filename += "." + extension;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user