From: miniduikboot Date: Tue, 23 Jul 2024 19:34:28 +0000 (+0200) Subject: VoteBanSystem now contains itself as a component X-Git-Tag: v1.10.0~7^2~18 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=c315ef9c2881d6849aab14fbd1f9a72d5bfc0ee2;p=rhonda%2Fimpostor.git VoteBanSystem now contains itself as a component This makes it consistent with the other spawnables. --- diff --git a/src/Impostor.Server/Net/Inner/Objects/Components/InnerVoteBanSystem.cs b/src/Impostor.Server/Net/Inner/Objects/Components/InnerVoteBanSystem.cs index 68abcbe..8b20d73 100644 --- a/src/Impostor.Server/Net/Inner/Objects/Components/InnerVoteBanSystem.cs +++ b/src/Impostor.Server/Net/Inner/Objects/Components/InnerVoteBanSystem.cs @@ -21,6 +21,7 @@ namespace Impostor.Server.Net.Inner.Objects.Components { _logger = logger; _votes = new Dictionary(); + Components.Add(this); } public override ValueTask SerializeAsync(IMessageWriter writer, bool initialState)