Fix mistake I made whilst copying my changes into the PR

This commit is contained in:
Bartek Wreczycki
2023-03-08 23:38:03 +00:00
committed by GitHub
parent 3f956f4649
commit dc83d546b8

View File

@@ -66,7 +66,7 @@ public class CreateCommand extends SubCommand {
File getDirectory = new File(CustomDiscs.getInstance().getDataFolder(), "musicdata");
File songFile = new File(getDirectory.getPath(), filename);
if (songFile.exists()) {
if (getFileExtension(filename).equals("wav") || getFileExtension(filename).equals("mp3"), getFileExtension(filename).equals("flac")) {
if (getFileExtension(filename).equals("wav") || getFileExtension(filename).equals("mp3") || getFileExtension(filename).equals("flac")) {
songname = args[1];
} else {
player.sendMessage(ChatColor.RED + "File is not in wav, flac, or mp3 format!");