房间错误信息修正

This commit is contained in:
kercylan98
2023-05-11 14:43:10 +08:00
parent 844e165a7d
commit 9667eec16b
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ func (slf *Room[PlayerID, Player]) ChangeOwner(id PlayerID) {
func (slf *Room[PlayerID, Player]) Join(player Player) error {
if slf.players.Size() >= slf.playerLimit && slf.playerLimit > 0 {
return ErrWorldPlayerLimit
return ErrRoomPlayerLimit
}
log.Debug("Room.Join", zap.Any("guid", slf.GetGuid()), zap.Any("player", player.GetID()))
slf.players.Set(player.GetID(), player)