Skip to content

Commit 36f5737

Browse files
committed
Merge branch 'feat/auth' of https://github.com/Avanatiker/NeoLambda into feat/auth
2 parents 8608e25 + f049fab commit 36f5737

File tree

1 file changed

+2
-1
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/client

1 file changed

+2
-1
lines changed

common/src/main/kotlin/com/lambda/module/modules/client/Discord.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ object Discord : Module(
102102
*/
103103
fun SafeContext.partyCreate() {
104104
if (!isDiscordLinked) return warn("You did not link your discord account")
105-
if (!player.isInParty) {
105+
if (player.isInParty) {
106106
if (player.isPartyOwner) deleteParty() else leaveParty()
107107
return
108108
}
109+
}
109110

110111
val (party, error) = createParty()
111112
if (error != null) warn("Failed to create a party: ${error.errorData}")

0 commit comments

Comments
 (0)