From c6b6f1fd9377896df0d17f1951cb84c2a1ffd24a Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Wed, 24 Apr 2024 09:31:44 +0200 Subject: Backend: Replace Internal Commands (#1522) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt index fc024a4c8..29a22138d 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt @@ -177,7 +177,9 @@ class RepoManager(private val configLocation: File) { if (error) { ChatUtils.clickableChat( "Error with the repo detected, try /shupdaterepo to fix it!", - "shupdaterepo", + onClick = { + SkyHanniMod.repo.updateRepo() + }, prefixColor = "§c" ) if (unsuccessfulConstants.isEmpty()) { -- cgit