fix(avatars): isolate King Pom-Pom to CW metadata to prevent showing in player roster

This commit is contained in:
CAtlas0784 committed 2026-11-01 03:15:34 +07:00
1 parent 70ab5fac42
commit d9b7a4ce1b
2 files changed
+7 -2

No files matched your search

+2
View File
@@ -1125,6 +1125,8 @@ function setupServerModes() {
// Initialize Avatars Database: Populates all known avatars from metadata
function initAvatarsList(force = false) {
// Prune any non-playable or CW-only avatars that might have been loaded
state.avatarsList = state.avatarsList.filter(a => AVATAR_METADATA[a.avatar_id]);
if (state.avatarsList.length > 0 && !force) {
let missing = false;
for (const aidStr in AVATAR_METADATA) {