fix custom sounds mabe

fixes the one with the pitch higher/lower than the 2 octave limit thing
This commit is contained in:
Chayapak 2023-08-09 18:51:43 +07:00
parent d63adca59a
commit 88ceb46d71
3 changed files with 4 additions and 8 deletions

View file

@ -2,6 +2,7 @@
<project version="4"> <project version="4">
<component name="CompilerConfiguration"> <component name="CompilerConfiguration">
<annotationProcessing> <annotationProcessing>
<profile default="true" name="Default" enabled="true" />
<profile name="Maven default annotation processors profile" enabled="true"> <profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" /> <sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />

View file

@ -52,13 +52,8 @@ public class InfoCommand {
.append(Component.text(" (").color(NamedTextColor.DARK_GRAY)) .append(Component.text(" (").color(NamedTextColor.DARK_GRAY))
.append( .append(
Component Component
.text("<3") .text(":3")
.color(NamedTextColor.RED) .color(NamedTextColor.RED)
.hoverEvent(
HoverEvent.showText(
Component.text("y e s :)")
)
)
) )
.append(Component.text(")").color(NamedTextColor.DARK_GRAY)) .append(Component.text(")").color(NamedTextColor.DARK_GRAY))
.append(Component.text(" and contributors", NamedTextColor.GRAY)) .append(Component.text(" and contributors", NamedTextColor.GRAY))

View file

@ -167,9 +167,9 @@ public class NBSConverter {
key += customInstrument.pitch; key += customInstrument.pitch;
} }
if (key < 33 || key > 57) { /* if (key < 33 || key > 57) {
continue; continue;
} } */
byte layerVolume = 100; byte layerVolume = 100;
if (nbsLayers.size() > note.layer) { if (nbsLayers.size() > note.layer) {