From 43faf590e47902f7f3f9f6419c3dcb5237887e12 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Thu, 5 Nov 2020 22:06:22 -0500 Subject: [PATCH] Proper quester class cast, per #1441 --- main/src/main/java/me/blackvein/quests/Quester.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/src/main/java/me/blackvein/quests/Quester.java b/main/src/main/java/me/blackvein/quests/Quester.java index 3097cf9ff..758eb3507 100644 --- a/main/src/main/java/me/blackvein/quests/Quester.java +++ b/main/src/main/java/me/blackvein/quests/Quester.java @@ -71,7 +71,7 @@ import me.blackvein.quests.util.MiscUtil; import me.clip.placeholderapi.PlaceholderAPI; import net.citizensnpcs.api.npc.NPC; -public class Quester implements Comparable { +public class Quester implements Comparable { private final Quests plugin; public boolean hasJournal = false; @@ -240,8 +240,8 @@ public class Quester implements Comparable { } @Override - public int compareTo(final UUID uuid) { - return id.compareTo(uuid); + public int compareTo(final Quester quester) { + return id.compareTo(quester.getUUID()); } public UUID getUUID() {