Release Healer Man 0.1.14
This commit is contained in:
1 parent
67d7a8ebe7
commit
7b41b102fa
147 files changed
+169892
-1342
No files matched your search
@@ -36,6 +36,7 @@ import type {
|
||||
} from "../app/characterCatalog";
|
||||
import type { InventoryItem } from "../game/lootTypes";
|
||||
import { resolveContentUrl } from "../content/contentManager";
|
||||
import { useContentManagerSnapshot } from "../content/useContentManager";
|
||||
import {
|
||||
selectCharacterBaseClip,
|
||||
selectCharacterEventClip,
|
||||
@@ -144,6 +145,7 @@ function useManifestEntry(identity: AvatarIdentity | null | undefined): {
|
||||
manifest: AvatarManifest | null;
|
||||
entry: AvatarManifestEntry | null;
|
||||
} {
|
||||
const contentRevision = useContentManagerSnapshot().installedRevision;
|
||||
const [state, setState] = useState<{ manifest: AvatarManifest; entry: AvatarManifestEntry } | null>(null);
|
||||
const key = identity ? avatarManifestKey(identity.raceId, identity.gender) : "";
|
||||
const raceId = identity?.raceId;
|
||||
@@ -162,7 +164,7 @@ function useManifestEntry(identity: AvatarIdentity | null | undefined): {
|
||||
if (!cancelled) console.warn("Playable-character manifest could not be loaded", error);
|
||||
});
|
||||
return () => { cancelled = true; };
|
||||
}, [gender, key, raceId]);
|
||||
}, [contentRevision, gender, key, raceId]);
|
||||
return { manifest: state?.manifest ?? null, entry: state?.entry ?? null };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user