Skip to content

Commit 289163f

Browse files
committed
Mute notes in locked NBS layers
1 parent 15bce5d commit 289163f

File tree

1 file changed

+4
-0
lines changed
  • src/main/java/net/raphimc/noteblocklib/format/nbs

1 file changed

+4
-0
lines changed

src/main/java/net/raphimc/noteblocklib/format/nbs/NbsIo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ public static NbsSong readSong(final InputStream is, final String fileName) thro
172172
}
173173
}
174174

175+
if (layer.isLocked()) { // Locked layers are muted
176+
note.setVolume(0F);
177+
}
178+
175179
song.getNotes().add(noteEntry.getKey(), note);
176180
}
177181
}

0 commit comments

Comments
 (0)