Skip to content

Commit

Permalink
change uuid check
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Aug 20, 2024
1 parent bd92b69 commit 50aa819
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 50aa819

Please sign in to comment.