Skip to content

Commit a3cc078

Browse files
authored
Remove playNote in NoteblockSongPlayer #81
2 parents 57d987b + 7cd8b8e commit a3cc078

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 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,13 +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;
95-
96-
player.playNote(loc, InstrumentUtils.getBukkitInstrument(note.getInstrument()),
97-
new org.bukkit.Note(key));
9890

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

0 commit comments

Comments
 (0)