Skip to content

Commit 53f7067

Browse files
committed
Fixed EntitySongPlayer bug
1 parent da042ca commit 53f7067

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,9 @@ public boolean isRandom(){
805805
}
806806

807807
void CallUpdate(String key, Object value){
808+
if (oldSongPlayer == null){
809+
return;
810+
}
808811
try {
809812
Method m = com.xxmicloxx.NoteBlockAPI.SongPlayer.class.getDeclaredMethod("update", String.class, Object.class);
810813
m.setAccessible(true);

0 commit comments

Comments
 (0)