Skip to content

Commit 81b88f3

Browse files
committed
Bug fix #59
1 parent 20b9b46 commit 81b88f3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.xxmicloxx</groupId>
77
<artifactId>NoteBlockAPI</artifactId>
8-
<version>1.6.1-SNAPSHOT</version>
8+
<version>1.6.1.1-SNAPSHOT</version>
99
<name>NoteBlockAPI</name>
1010

1111
<properties>

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,10 @@ public void setPlaying(boolean playing, Fade fade) {
640640
fading = false;
641641
fadeTemp = null;
642642
volume = fadeIn.getFadeTarget();
643-
SongStoppedEvent event = new SongStoppedEvent(this);
644-
plugin.doSync(() -> Bukkit.getPluginManager().callEvent(event));
643+
if (!playing) {
644+
SongStoppedEvent event = new SongStoppedEvent(this);
645+
plugin.doSync(() -> Bukkit.getPluginManager().callEvent(event));
646+
}
645647
}
646648

647649
CallUpdate("playing", playing);

0 commit comments

Comments
 (0)