Skip to content

Commit 7cd8b8e

Browse files
committed
Remove unused key calculation and unused import.
1 parent 491103e commit 7cd8b8e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/com/xxmicloxx/NoteBlockAPI/songplayer/NoteBlockSongPlayer.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import com.xxmicloxx.NoteBlockAPI.event.PlayerRangeStateChangeEvent;
66
import com.xxmicloxx.NoteBlockAPI.model.*;
77
import com.xxmicloxx.NoteBlockAPI.utils.CompatibilityUtils;
8-
import com.xxmicloxx.NoteBlockAPI.utils.InstrumentUtils;
98
import org.bukkit.Bukkit;
109
import org.bukkit.Location;
1110
import org.bukkit.block.Block;
@@ -88,10 +87,6 @@ public void playTick(Player player, int tick) {
8887
if (note == null) {
8988
continue;
9089
}
91-
int key = note.getKey() - 33;
92-
93-
while (key < 0) key += 12;
94-
while (key > 24) key -= 12;
9590

9691
float volume = ((layer.getVolume() * (int) this.volume * (int) playerVolume * note.getVelocity()) / 100_00_00_00F)
9792
* ((1F / 16F) * getDistance());

0 commit comments

Comments
 (0)