Remove unecessary interpolate

This commit is contained in:
MyNameIsBatman 2021-07-04 18:18:44 -03:00
parent 43f25ac472
commit 80daebc874

View File

@ -111,7 +111,7 @@ export class SoundManager extends NitroManager
if(!sample)
{
const sampleUrl = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration<string>('sounds.url'));
const sampleUrl = Nitro.instance.getConfiguration<string>('sounds.url');
sample = new Audio(sampleUrl.replace('%sample%', code));
this._internalSamples.add(code, sample);
@ -126,7 +126,7 @@ export class SoundManager extends NitroManager
if(!sample)
{
const sampleUrl = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration<string>('external.samples.url'));
const sampleUrl = Nitro.instance.getConfiguration<string>('external.samples.url');
sample = new Audio(sampleUrl.replace('%sample%', code.toString()));
this._furniSamples.add(code, sample);