mirror of
https://github.com/GTNewHorizons/BetterP2P.git
synced 2026-11-24 22:04:32 +00:00
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:
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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user