From 88ceb46d718137af2df545b4cabeecda313efc97 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Wed, 9 Aug 2023 18:51:43 +0700 Subject: [PATCH] fix custom sounds mabe fixes the one with the pitch higher/lower than the 2 octave limit thing --- .idea/compiler.xml | 1 + .../land/chipmunk/chipmunkbot/commands/InfoCommand.java | 7 +------ .../java/land/chipmunk/chipmunkbot/song/NBSConverter.java | 4 ++-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index e65b78d..cc63165 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -2,6 +2,7 @@ + diff --git a/src/main/java/land/chipmunk/chipmunkbot/commands/InfoCommand.java b/src/main/java/land/chipmunk/chipmunkbot/commands/InfoCommand.java index 388a290..cff6f14 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/commands/InfoCommand.java +++ b/src/main/java/land/chipmunk/chipmunkbot/commands/InfoCommand.java @@ -52,13 +52,8 @@ public class InfoCommand { .append(Component.text(" (").color(NamedTextColor.DARK_GRAY)) .append( Component - .text("<3") + .text(":3") .color(NamedTextColor.RED) - .hoverEvent( - HoverEvent.showText( - Component.text("y e s :)") - ) - ) ) .append(Component.text(")").color(NamedTextColor.DARK_GRAY)) .append(Component.text(" and contributors", NamedTextColor.GRAY)) diff --git a/src/main/java/land/chipmunk/chipmunkbot/song/NBSConverter.java b/src/main/java/land/chipmunk/chipmunkbot/song/NBSConverter.java index 6cf5f1a..2f9ce8d 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/song/NBSConverter.java +++ b/src/main/java/land/chipmunk/chipmunkbot/song/NBSConverter.java @@ -167,9 +167,9 @@ public class NBSConverter { key += customInstrument.pitch; } - if (key < 33 || key > 57) { + /* if (key < 33 || key > 57) { continue; - } + } */ byte layerVolume = 100; if (nbsLayers.size() > note.layer) {