mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-15 00:15:08 +01:00
Fix entree object notifications
This commit is contained in:
@@ -320,7 +320,7 @@ func handleMsgSysEnterStage(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
BinaryType: 3,
|
BinaryType: 3,
|
||||||
}, s)
|
}, 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.logger.Info("Notifying entree about existing stage clients")
|
||||||
s.stage.RLock()
|
s.stage.RLock()
|
||||||
clientNotif := byteframe.NewByteFrame()
|
clientNotif := byteframe.NewByteFrame()
|
||||||
@@ -329,11 +329,18 @@ func handleMsgSysEnterStage(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
CharID: session.charID,
|
CharID: session.charID,
|
||||||
}).Build(clientNotif)
|
}).Build(clientNotif)
|
||||||
|
|
||||||
// Just the first user binary type (name) for right now.
|
|
||||||
(&mhfpacket.MsgSysNotifyUserBinary{
|
(&mhfpacket.MsgSysNotifyUserBinary{
|
||||||
CharID: session.charID,
|
CharID: session.charID,
|
||||||
BinaryType: 1,
|
BinaryType: 1,
|
||||||
}).Build(clientNotif)
|
}).Build(clientNotif)
|
||||||
|
(&mhfpacket.MsgSysNotifyUserBinary{
|
||||||
|
CharID: session.charID,
|
||||||
|
BinaryType: 2,
|
||||||
|
}).Build(clientNotif)
|
||||||
|
(&mhfpacket.MsgSysNotifyUserBinary{
|
||||||
|
CharID: session.charID,
|
||||||
|
BinaryType: 3,
|
||||||
|
}).Build(clientNotif)
|
||||||
}
|
}
|
||||||
s.stage.RUnlock()
|
s.stage.RUnlock()
|
||||||
clientNotif.WriteUint16(0x0010) // End it.
|
clientNotif.WriteUint16(0x0010) // End it.
|
||||||
|
|||||||
Reference in New Issue
Block a user