You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
🆙 Lets change the way generic asset is loading WiP
This commit is contained in:
@@ -522,7 +522,11 @@ export class RoomContentLoader implements IRoomContentLoader
|
||||
|
||||
private getAssetUrlWithGenericBase(assetName: string): string
|
||||
{
|
||||
return (GetConfiguration().getValue<string>('generic.asset.url').replace(/%libname%/gi, assetName));
|
||||
const assetUrl = GetConfiguration().getValue<string>('generic.asset.url').replace(/%libname%/gi, assetName);
|
||||
|
||||
if(assetUrl.endsWith('.nitro')) return assetUrl.replace(/\.nitro$/i, '.json');
|
||||
|
||||
return assetUrl;
|
||||
}
|
||||
|
||||
public getAssetUrlWithFurniBase(assetName: string): string
|
||||
@@ -558,4 +562,4 @@ export class RoomContentLoader implements IRoomContentLoader
|
||||
{
|
||||
return this._pets;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user