]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix role ban loading bugs (#32725)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Mon, 14 Oct 2024 03:30:31 +0000 (05:30 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Oct 2024 03:30:31 +0000 (14:30 +1100)
commit4a5178a5389a4a5beb952c884515e011046362b5
treee0eb41f70d8400fe8c281b29eb1b6d6ba41010db
parent9ceb97153598b40c43456bca3ee9012b84067d42
Fix role ban loading bugs (#32725)

This code was a mess. Now it's less of a mess and user UserDbDataManager now.

Fixes the following bugs:

* If you connect to a server, restart your client, connect again in the same round, you role bans would not be visible in the client.
* If you role ban somebody who is not connected to the server, then they connect within the round, they will only have the recently-applied ban.

Likely fixes #24781, #27282
Content.Client/Players/PlayTimeTracking/JobRequirementsManager.cs
Content.Server/Administration/Managers/BanManager.cs
Content.Server/Administration/Managers/IBanManager.cs
Content.Server/GameTicking/GameTicker.RoundFlow.cs