aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/io
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-06-27 18:45:30 +1000
committerGitHub <noreply@github.com>2023-06-27 18:45:30 +1000
commitc18352ccb6b71b14961adab81032c44d7cc2b3d3 (patch)
tree748891b50421ede1a2273760b7ecac1db8531177 /src/main/kotlin/io
parent3afaada8856709250573cfdb02222102d4361343 (diff)
downloadNotEnoughUpdates-c18352ccb6b71b14961adab81032c44d7cc2b3d3.tar.gz
NotEnoughUpdates-c18352ccb6b71b14961adab81032c44d7cc2b3d3.tar.bz2
NotEnoughUpdates-c18352ccb6b71b14961adab81032c44d7cc2b3d3.zip
Recent Pv profiles (#727)
Diffstat (limited to 'src/main/kotlin/io')
-rw-r--r--src/main/kotlin/io/github/moulberry/notenoughupdates/commands/misc/ProfileViewerCommands.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/misc/ProfileViewerCommands.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/misc/ProfileViewerCommands.kt
index 41cd6b0f..d25e880b 100644
--- a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/misc/ProfileViewerCommands.kt
+++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/misc/ProfileViewerCommands.kt
@@ -24,6 +24,7 @@ import io.github.moulberry.notenoughupdates.NotEnoughUpdates
import io.github.moulberry.notenoughupdates.autosubscribe.NEUAutoSubscribe
import io.github.moulberry.notenoughupdates.events.RegisterBrigadierCommandEvent
import io.github.moulberry.notenoughupdates.profileviewer.GuiProfileViewer
+import io.github.moulberry.notenoughupdates.profileviewer.ProfileViewerUtils
import io.github.moulberry.notenoughupdates.util.brigadier.*
import net.minecraft.client.Minecraft
import net.minecraft.client.renderer.OpenGlHelper
@@ -56,6 +57,7 @@ class ProfileViewerCommands {
reply("${RED}Invalid player name/API key. Maybe the API is down? Try /api new.")
} else {
profile.resetCache()
+ ProfileViewerUtils.saveSearch(name)
NotEnoughUpdates.INSTANCE.openGui = GuiProfileViewer(profile)
}
}