From c341f7f11eddf6648a5660e83b9a45785d9f86ac Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Fri, 26 Apr 2019 21:21:20 +0200 Subject: [PATCH] Updated for 1.14 --- src/com/massivecraft/factions/entity/MFlag.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/entity/MFlag.java b/src/com/massivecraft/factions/entity/MFlag.java index 38e150c3..78b4ead2 100644 --- a/src/com/massivecraft/factions/entity/MFlag.java +++ b/src/com/massivecraft/factions/entity/MFlag.java @@ -9,6 +9,7 @@ import com.massivecraft.massivecore.comparator.ComparatorSmart; import com.massivecraft.massivecore.predicate.PredicateIsRegistered; import com.massivecraft.massivecore.store.Entity; import com.massivecraft.massivecore.util.Txt; +import org.bukkit.Bukkit; import org.bukkit.ChatColor; import java.util.List; @@ -64,13 +65,13 @@ public class MFlag extends Entity implements Prioritized, Registerable, N public static List getAll() { - return getAll(false); + return getAll(Bukkit.isPrimaryThread()); } - public static List getAll(boolean isAsync) + public static List getAll(boolean sync) { setupStandardFlags(); - new EventFactionsCreateFlags(isAsync).run(); + new EventFactionsCreateFlags(!sync).run(); return MFlagColl.get().getAll(PredicateIsRegistered.get(), ComparatorSmart.get()); }