Fix godmode mispredicts (#18524)

Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
This commit is contained in:
metalgearsloth
2023-08-04 14:53:07 +10:00
committed by GitHub
parent a695b15e17
commit 94e2c7a4b0
8 changed files with 138 additions and 104 deletions

View File

@@ -1,6 +1,7 @@
using Content.Server.Administration;
using Content.Server.Damage.Systems;
using Content.Shared.Administration;
using Content.Shared.Damage.Systems;
using Robust.Server.Player;
using Robust.Shared.Console;
@@ -57,7 +58,7 @@ namespace Content.Server.Damage.Commands
return;
}
var godmodeSystem = EntitySystem.Get<GodmodeSystem>();
var godmodeSystem = EntitySystem.Get<SharedGodmodeSystem>();
var enabled = godmodeSystem.ToggleGodmode(entity);
var name = entityManager.GetComponent<MetaDataComponent>(entity).EntityName;