Skip to content

Commit

Permalink
fix: mark event as async if dispatched async (#7)
Browse files Browse the repository at this point in the history
* fix: mark event as async if dispatched async

* bump 0.2.2

---------

Co-authored-by: Netherwhal <[email protected]>
  • Loading branch information
rexlManu and Netherwhal authored Feb 15, 2024
1 parent 817401b commit d8db660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group 'net.simplyvanilla'
version '0.2.1'
version '0.2.2'

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.simplyvanilla.simplyvotifier.model;

import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

Expand Down Expand Up @@ -29,6 +30,7 @@ public class VotifierEvent extends Event {
* @param vote vote record
*/
public VotifierEvent(final Vote vote) {
super(!Bukkit.isPrimaryThread());
this.vote = vote;
}

Expand Down

0 comments on commit d8db660

Please sign in to comment.