mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 16:04:38 +01:00
reimplement lazy packets
This commit is contained in:
@@ -192,10 +192,10 @@ func GetMailByID(ID int) (*Mail, error) {
|
||||
}
|
||||
|
||||
type SessionMail interface {
|
||||
QueueSendMHF(packet mhfpacket.MHFPacket)
|
||||
QueueSendMHFLazy(packet mhfpacket.MHFPacket)
|
||||
}
|
||||
|
||||
func SendMailNotification(s SessionMail, m *Mail, recipient SessionMail) {
|
||||
func SendMailNotification(m *Mail, recipient SessionMail) {
|
||||
bf := byteframe.NewByteFrame()
|
||||
|
||||
notification := &binpacket.MsgBinMailNotify{
|
||||
@@ -213,7 +213,7 @@ func SendMailNotification(s SessionMail, m *Mail, recipient SessionMail) {
|
||||
|
||||
castedBinary.Build(bf)
|
||||
|
||||
recipient.QueueSendMHF(castedBinary)
|
||||
recipient.QueueSendMHFLazy(castedBinary)
|
||||
}
|
||||
|
||||
func getCharacterName(charID uint32) string {
|
||||
|
||||
Reference in New Issue
Block a user