Skip to content

Commit

Permalink
SW-312 fixed threading issue with SiegeEndEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
goosius1 committed Jul 18, 2021
1 parent 423b14a commit 6e4e9a5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.gmail.goosius.siegewar.events;

import com.gmail.goosius.siegewar.objects.Siege;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;
Expand All @@ -25,6 +26,7 @@ public class SiegeEndEvent extends Event {

public SiegeEndEvent(Siege siege,
String besiegedTownName) {
super(!Bukkit.getServer().isPrimaryThread());
this.siege = siege;
this.besiegedTownName = besiegedTownName;
}
Expand Down

0 comments on commit 6e4e9a5

Please sign in to comment.