removed TryGetSound + made some SoundSpecifier datafields required
This commit is contained in:
@@ -723,10 +723,7 @@ namespace Content.Server.Botany.Components
|
||||
sprayed = true;
|
||||
amount = ReagentUnit.New(1);
|
||||
|
||||
if (spray.SpraySound.TryGetSound(out var spraySound))
|
||||
{
|
||||
SoundSystem.Play(Filter.Pvs(usingItem), spraySound, usingItem, AudioHelpers.WithVariation(0.125f));
|
||||
}
|
||||
SoundSystem.Play(Filter.Pvs(usingItem), spray.SpraySound.GetSound(), usingItem, AudioHelpers.WithVariation(0.125f));
|
||||
}
|
||||
|
||||
var split = solution.Drain(amount);
|
||||
|
||||
Reference in New Issue
Block a user