From 68c7a3c9accd1e96e5c31a3bae9835a09f8bee82 Mon Sep 17 00:00:00 2001 From: Igor null Date: Thu, 21 Jan 2021 00:49:33 +0200 Subject: [PATCH] quick fix for noodle extensions -- limit row/column indexes by modulus --- Core/NsvController.cs | 4 +++- manifest.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/NsvController.cs b/Core/NsvController.cs index 1fcbeb5..4683e96 100644 --- a/Core/NsvController.cs +++ b/Core/NsvController.cs @@ -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); } diff --git a/manifest.json b/manifest.json index bc96715..e2458c6 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "SliceVisualizer", "name": "SliceVisualizer", "author": "Igor null ", - "version": "0.0.4", + "version": "0.0.5", "description": "Shows your cut data to train your accuracy", "gameVersion": "1.13.0", "dependsOn": {