summaryrefslogtreecommitdiff
path: root/src/client/scripts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-07 14:40:57 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-07 14:40:57 +0900
commit5b965349a5abed481ef0d6649c02184f7b774036 (patch)
tree6ac86b3a634b0e9fab2fb88896f1ce28e3cc68b6 /src/client/scripts
parent12.74.0 (diff)
downloadsharkey-5b965349a5abed481ef0d6649c02184f7b774036.tar.gz
sharkey-5b965349a5abed481ef0d6649c02184f7b774036.tar.bz2
sharkey-5b965349a5abed481ef0d6649c02184f7b774036.zip
fix assets
Fix #7314 Fix #7313
Diffstat (limited to 'src/client/scripts')
-rw-r--r--src/client/scripts/room/room.ts4
-rw-r--r--src/client/scripts/sound.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/scripts/room/room.ts b/src/client/scripts/room/room.ts
index 8fe3ebdeb0..4450210c6c 100644
--- a/src/client/scripts/room/room.ts
+++ b/src/client/scripts/room/room.ts
@@ -340,7 +340,7 @@ export class Room {
@autobind
private loadRoom() {
const type = this.roomInfo.roomType;
- new GLTFLoader().load(`/static-assets/room/rooms/${type}/${type}.glb`, gltf => {
+ new GLTFLoader().load(`/static-assets/client/room/rooms/${type}/${type}.glb`, gltf => {
gltf.scene.traverse(child => {
if (!(child instanceof THREE.Mesh)) return;
@@ -375,7 +375,7 @@ export class Room {
const def = furnitureDefs.find(d => d.id === furniture.type);
return new Promise<GLTF>((res, rej) => {
const loader = new GLTFLoader();
- loader.load(`/static-assets/room/furnitures/${furniture.type}/${furniture.type}.glb`, gltf => {
+ loader.load(`/static-assets/client/room/furnitures/${furniture.type}/${furniture.type}.glb`, gltf => {
const model = gltf.scene;
// Load animation
diff --git a/src/client/scripts/sound.ts b/src/client/scripts/sound.ts
index bb4cfee06a..9b7061d5fc 100644
--- a/src/client/scripts/sound.ts
+++ b/src/client/scripts/sound.ts
@@ -16,7 +16,7 @@ export function playFile(file: string, volume: number) {
if (cache.has(file)) {
audio = cache.get(file);
} else {
- audio = new Audio(`/static-assets/sounds/${file}.mp3`);
+ audio = new Audio(`/static-assets/client/sounds/${file}.mp3`);
cache.set(file, audio);
}
audio.volume = masterVolume - ((1 - volume) * masterVolume);