Skip to content

Commit

Permalink
quick fix for noodle extensions -- limit row/column indexes by modulus
Browse files Browse the repository at this point in the history
  • Loading branch information
m1el committed Jan 20, 2021
1 parent f565599 commit 68c7a3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Core/NsvController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ private void OnNoteCut(NoteController noteController, NoteCutInfo noteCutInfo)
{
// Re-use cubes at the same column & layer to avoid UI cluttering
var noteData = noteController.noteData;
var blockIndex = noteData.lineIndex + 4 * (int) noteData.noteLineLayer;
var lineLayer = ((int) noteController.noteData.noteLineLayer % 3);
var lineIndex = noteController.noteData.lineIndex % 4;
var blockIndex = lineIndex + 4 * lineLayer;
var slicedBlock = _slicedBlockPool[blockIndex];
slicedBlock.SetData(noteController, noteCutInfo, noteData);
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "SliceVisualizer",
"name": "SliceVisualizer",
"author": "Igor null <m1el.2027@gmail.com>",
"version": "0.0.4",
"version": "0.0.5",
"description": "Shows your cut data to train your accuracy",
"gameVersion": "1.13.0",
"dependsOn": {
Expand Down

0 comments on commit 68c7a3c

Please sign in to comment.