Skip to content

Commit

Permalink
Fix issues for 1.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed Feb 22, 2024
1 parent 1211ca3 commit d4a2217
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ kotlin {
}

tasks.create("prepareChangelog") {
var changelog = File("Changelog.md").readText(StandardCharsets.UTF_8)
val file = File("Changelog.md")
if (!file.exists()) return@create
var changelog = file.readText(StandardCharsets.UTF_8)
changelog = changelog.replace(Regex("[^^](#(#|\\n|.)+)|(^#.+)"), "")
println(changelog.trim())
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ object LinkCommand : Command<CommandSourceStack> {
context.source.sendFailure(Component.literal(AstralBotTextConfig.LINK_COMMAND_ALREADY_LINKED.get()))
}
val whitelistCode = WhitelistHandler.getOrGenerateWhitelistCode(caller.uuid)
context.source.sendSuccess({
Component.literal(AstralBotTextConfig.LINK_COMMAND_MESSAGE.get().replace("{{code}}", "$whitelistCode"))
}, false)
context.source.sendSuccess(Component.literal(AstralBotTextConfig.LINK_COMMAND_MESSAGE.get().replace("{{code}}", "$whitelistCode")), false)
return 0
}
}

0 comments on commit d4a2217

Please sign in to comment.