Skip to content

Commit

Permalink
chore: display fix
Browse files Browse the repository at this point in the history
  • Loading branch information
98ping committed Aug 11, 2023
1 parent 611de63 commit d9f6f27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class FriendsMenu(val player: Player, val profile: GameProfile) : Menu(player) {
return@thenAcceptAsync
}

if (it.friends.contains(player.uniqueId))
if (it.friendInvites.contains(player.uniqueId))
{
player.sendMessage(Chat.format("&cYou already have an outgoing friend request to this player!"))
return@thenAcceptAsync
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class OutgoingFriendRequestMenu(val player: Player, val profile: GameProfile) :
}

return@thenApply buttons
}.get()
}.join()
}

override fun getTitle(player: Player): String {
Expand Down Expand Up @@ -97,8 +97,8 @@ class OutgoingFriendRequestMenu(val player: Player, val profile: GameProfile) :
profile.friendInvites.remove(gameProfile.uuid)
ProfileGameService.save(profile)

player.closeInventory()
OutgoingFriendRequestMenu(player, gameProfile).updateMenu()
player.closeInventory()
player.sendMessage(Chat.format("&aYou revoked " + profile.getRankDisplay() + "&a's outgoing friend request!"))
}

Expand Down

0 comments on commit d9f6f27

Please sign in to comment.