diff --git a/src/main/java/com/badbones69/crazycrates/tasks/crates/other/quadcrates/SessionManager.java b/src/main/java/com/badbones69/crazycrates/tasks/crates/other/quadcrates/SessionManager.java index 99054f8aa..704fd640a 100644 --- a/src/main/java/com/badbones69/crazycrates/tasks/crates/other/quadcrates/SessionManager.java +++ b/src/main/java/com/badbones69/crazycrates/tasks/crates/other/quadcrates/SessionManager.java @@ -16,7 +16,7 @@ public final boolean inSession(@NotNull final Player player) { if (QuadCrateManager.getCrateSessions().isEmpty()) return false; for (QuadCrateManager quadCrateManager : QuadCrateManager.getCrateSessions()) { - if (quadCrateManager.getPlayer().getUniqueId() == player.getUniqueId()) return true; + if (quadCrateManager.getPlayer().getUniqueId().equals(player.getUniqueId())) return true; } return false; @@ -30,7 +30,7 @@ public final boolean inSession(@NotNull final Player player) { */ public @Nullable final QuadCrateManager getSession(@NotNull final Player player) { for (QuadCrateManager quadCrateManager : QuadCrateManager.getCrateSessions()) { - if (quadCrateManager.getPlayer().getUniqueId() == player.getUniqueId()) return quadCrateManager; + if (quadCrateManager.getPlayer().getUniqueId().equals(player.getUniqueId())) return quadCrateManager; } return null;