Small blips

This commit is contained in:
Auxilor
2023-01-17 17:50:07 +00:00
parent 5bfe48c8d9
commit cc9b3f7710
2 changed files with 3 additions and 2 deletions

View File

@@ -85,8 +85,8 @@ public record PlayableSound(@NotNull Sound sound,
try {
Sound sound = Sound.valueOf(config.getString("sound").toUpperCase());
double pitch = Objects.requireNonNullElse(config.getDouble("pitch"), 1.0);
double volume = Objects.requireNonNullElse(config.getDouble("volume"), 1.0);
double pitch = Objects.requireNonNullElse(config.getDoubleOrNull("pitch"), 1.0);
double volume = Objects.requireNonNullElse(config.getDoubleOrNull("volume"), 1.0);
return new PlayableSound(
sound,