Fix master (#15256)

This commit is contained in:
metalgearsloth
2023-04-10 15:47:51 +10:00
committed by GitHub
parent 8e817e2b97
commit aebe31cfde
3 changed files with 3 additions and 12 deletions

View File

@@ -157,10 +157,7 @@ public sealed class SpreaderSystem : EntitySystem
// of an edge so we'll let them handle it.
if (!groupUpdates.TryGetValue(node.NodeGroup, out var updates))
{
var spreadEv = new SpreadGroupUpdateRate()
{
Name = node.Name,
};
var spreadEv = new SpreadGroupUpdateRate(node.Name);
RaiseLocalEvent(ref spreadEv);
updates = (int) (spreadEv.UpdatesPerSecond * SpreadCooldown / TimeSpan.FromSeconds(1));
}