This commit is contained in:
kercylan98 2023-05-05 17:26:47 +08:00
parent f8c9014baf
commit 4a614f1625
3 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package game
import (
"minotaur/game"
"minotaur/server"
"minotaur/utils/sole"
)
@ -26,7 +27,7 @@ func onConnectionReceivePacket(srv *server.Server, conn *server.Conn, packet []b
}
}
func onConnectionClosed(player *Player) {
func onConnectionClosed(world game.World[int64, *Player], player *Player) {
Game.Leave(player.GetID())
player.Close()
}