Use the sound set's ID instead when possible
This commit is contained in:
@@ -48,8 +48,10 @@ public class SoundLocator extends Module {
|
||||
private void printSound(SoundInstance sound) {
|
||||
WeightedSoundSet soundSet = mc.getSoundManager().get(sound.getId());
|
||||
MutableText text;
|
||||
if (soundSet == null || soundSet.getSubtitle() == null) {
|
||||
if (soundSet == null) {
|
||||
text = Text.literal(sound.getId().toString());
|
||||
} else if (soundSet.getSubtitle() == null) {
|
||||
text = Text.literal(soundSet.getId().toString());
|
||||
} else {
|
||||
text = soundSet.getSubtitle().copy();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user