1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-04-25 02:28:50 +08:00
parent 1efc8517e1
commit 9452e36782
2 changed files with 10 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ func (s *Server) OnClose(c gnet.Conn, err error) (action gnet.Action) {
if v != nil {
v.Close()
if v.Player != nil {
v.Player.Save() //保存玩家数据
v.Player.SaveOnDisconnect() //保存玩家数据
}
}
return