mirror of
https://github.com/darksaid98/nightcore-spigot.git
synced 2026-12-03 22:16:57 +00:00
Fixed sound parsing errors
This commit is contained in:
1 parent
b3136c3bd4
commit
ff2018204c
1 file changed
+3
@@ -328,6 +328,9 @@ public class FileConfig extends YamlConfiguration {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public NightSound getSound(@NotNull String path) {
|
public NightSound getSound(@NotNull String path) {
|
||||||
|
if (this.contains(path + ".Name")) {
|
||||||
|
return NightSound.read(this, path); // Update
|
||||||
|
}
|
||||||
return NightSound.deserialize(this.getString(path, "null"));
|
return NightSound.deserialize(this.getString(path, "null"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user