Skip to content
Permalink
Browse files

add ".dsc" file extension (D2 backport)

  • Loading branch information...
mcmonkey4eva committed May 8, 2019
1 parent f50a7fb commit d51ba3efd2fbb71b686607db6ba3445570904efc
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/net/aufdemrand/denizencore/utilities/CoreUtilities.java
@@ -213,7 +213,11 @@ public boolean accept(File file, String fileName) {
}

String ext = fileName.substring(fileName.lastIndexOf('.') + 1);
return ext.equalsIgnoreCase("YML") || ext.equalsIgnoreCase("DSCRIPT");
if (ext.equalsIgnoreCase("DSCRIPT")) {
dB.echoError("'.dscript' extension has never been officially supported. Please use '.dsc'. Regarding file " + fileName);
return true;
}
return ext.equalsIgnoreCase("YML") || ext.equalsIgnoreCase("DSC");
}
};
}

0 comments on commit d51ba3e

Please sign in to comment.
You can’t perform that action at this time.