From f8a655ec66350ef138fc87fc12a0f092c80efaa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Sch=C3=BCrz?= Date: Mon, 6 Jan 2025 18:29:37 +0100 Subject: [PATCH] Remove avatar cache from web game --- packages/web/src/OsucadWebGame.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/web/src/OsucadWebGame.ts b/packages/web/src/OsucadWebGame.ts index d71a0a9c..de10cfd3 100644 --- a/packages/web/src/OsucadWebGame.ts +++ b/packages/web/src/OsucadWebGame.ts @@ -1,7 +1,6 @@ import type { DependencyContainer } from 'osucad-framework'; -import { ContextMenuContainer, DummyEditorBeatmap, Editor } from '@osucad/common'; +import { ContextMenuContainer, DummyEditorBeatmap, Editor, OsuRuleset, RulesetStore } from '@osucad/common'; import { OsucadGameBase } from '@osucad/editor'; -import { UserAvatarCache } from '@osucad/editor/UserAvatarCache'; import { Axes, Box } from 'osucad-framework'; import { OsucadScreenStack } from '../../common/src/screens/OsucadScreenStack'; import { EditorActionContainer } from '../../editor/src/editor/EditorActionContainer'; @@ -18,6 +17,8 @@ export class OsucadWebGame extends OsucadGameBase { async load(dependencies: DependencyContainer) { await super.load(dependencies); + RulesetStore.register(new OsuRuleset(), 0); + const screenStack = new OsucadScreenStack(); this.add(new Box({ @@ -40,11 +41,6 @@ export class OsucadWebGame extends OsucadGameBase { }), })); - const avatarCache = new UserAvatarCache(); - - this.add(avatarCache); - this.dependencies.provide(avatarCache); - const notificationOverlay = new NotificationOverlay(); this.add(notificationOverlay); dependencies.provide(NotificationOverlay, notificationOverlay);