Fixed sound parsing errors

This commit is contained in:
nulli0n committed 2025-02-28 20:19:21 +05:00
1 parent b3136c3bd4
commit ff2018204c
1 file changed
+3
@@ -328,6 +328,9 @@ public class FileConfig extends YamlConfiguration {
@NotNull
public NightSound getSound(@NotNull String path) {
if (this.contains(path + ".Name")) {
return NightSound.read(this, path); // Update
}
return NightSound.deserialize(this.getString(path, "null"));
}