mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-12 11:07:27 +08:00
[Bug fix] Link Play song idx too big error
- Fix a bug that if song's idx is too big, the server will catch the error, which makes Link Play cannot work. - For Arcaea 6.4.0/1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from .config_manager import Config
|
||||
|
||||
ARCAEA_SERVER_VERSION = 'v2.12.0.6'
|
||||
ARCAEA_DATABASE_VERSION = 'v2.12.0.6'
|
||||
ARCAEA_SERVER_VERSION = 'v2.12.0.7'
|
||||
ARCAEA_DATABASE_VERSION = 'v2.12.0.7'
|
||||
ARCAEA_LOG_DATBASE_VERSION = 'v1.1'
|
||||
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@ def get_song_unlock(client_song_map: 'dict[str, list]') -> bytes:
|
||||
if not v[i]:
|
||||
continue
|
||||
index = int(k) * 5 + i
|
||||
if index >= Constant.LINKPLAY_UNLOCK_LENGTH * 8:
|
||||
continue
|
||||
user_song_unlock[index // 8] |= 1 << (index % 8)
|
||||
|
||||
return bytes(user_song_unlock)
|
||||
|
||||
Reference in New Issue
Block a user