``` feat(pet): 重构宠物繁殖系统,添加蛋孵化功能

This commit is contained in:
1
2026-01-20 22:08:36 +00:00
parent cf4660fbe0
commit 5ef922278a
68 changed files with 4467 additions and 584 deletions

View File

@@ -169,9 +169,9 @@ func (p *Player) SendPack(b []byte) error {
if p.MainConn == nil {
return nil
}
_, ok := p.MainConn.Context().(*ClientData)
psocket, ok := p.MainConn.Context().(*ClientData)
if ok {
return p.MainConn.Context().(*ClientData).SendPack(b)
return psocket.SendPack(b)
}
return nil
}