improve sleeping mob state changes (#11083)

This commit is contained in:
Rane
2022-09-07 00:37:32 -04:00
committed by GitHub
parent d320ad950b
commit 1e62627ecb
3 changed files with 11 additions and 5 deletions

View File

@@ -36,6 +36,9 @@ namespace Content.Server.Sound
base.Update(frameTime);
foreach (var soundSpammer in EntityQuery<SpamEmitSoundComponent>())
{
if (!soundSpammer.Enabled)
continue;
soundSpammer.Accumulator += frameTime;
if (soundSpammer.Accumulator < soundSpammer.RollInterval)
{