From 99ceeb687207e0c3373aa2d9378040017b163adb Mon Sep 17 00:00:00 2001 From: Andrew Gutekanst Date: Fri, 24 Jan 2020 15:28:08 -0500 Subject: [PATCH] Fix entree object notifications --- server/channelserver/handlers.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/server/channelserver/handlers.go b/server/channelserver/handlers.go index 03f79915f..31d5f2d4a 100644 --- a/server/channelserver/handlers.go +++ b/server/channelserver/handlers.go @@ -320,7 +320,7 @@ func handleMsgSysEnterStage(s *Session, p mhfpacket.MHFPacket) { BinaryType: 3, }, s) - // TODO(Andoryuuta): Notify this client about all of the existing clients in the stage. + // Notify the entree client about all of the existing clients in the stage. s.logger.Info("Notifying entree about existing stage clients") s.stage.RLock() clientNotif := byteframe.NewByteFrame() @@ -329,11 +329,18 @@ func handleMsgSysEnterStage(s *Session, p mhfpacket.MHFPacket) { CharID: session.charID, }).Build(clientNotif) - // Just the first user binary type (name) for right now. (&mhfpacket.MsgSysNotifyUserBinary{ CharID: session.charID, BinaryType: 1, }).Build(clientNotif) + (&mhfpacket.MsgSysNotifyUserBinary{ + CharID: session.charID, + BinaryType: 2, + }).Build(clientNotif) + (&mhfpacket.MsgSysNotifyUserBinary{ + CharID: session.charID, + BinaryType: 3, + }).Build(clientNotif) } s.stage.RUnlock() clientNotif.WriteUint16(0x0010) // End it.