ClientRefreshInfoHandler.kt: Respect search after refresh

Currently, after receiving a refresh response from the server, the GUI for the advanced memory card resets and does not respect the current search term.

Commit fixes it.
This commit is contained in:
Firenoo committed 2023-02-09 00:09:24 -08:00
1 parent 994106fd74
commit af5eecd613
1 file changed
+1 -1
@@ -13,7 +13,7 @@ class ClientRefreshInfoHandler : IMessageHandler<S2CRefreshInfo, IMessage?> {
override fun onMessage(message: S2CRefreshInfo, ctx: MessageContext): IMessage? {
val gui = Minecraft.getMinecraft().currentScreen
if (gui is GuiAdvancedMemoryCard) {
gui.refreshInfo(message.infos)
gui.refreshInfo(message.infos, true)
}
return null
}