A bunch of AttachedEntity bullshit

This commit is contained in:
metalgearsloth
2021-12-06 15:39:46 +11:00
parent 215cae5655
commit 525297c5fe
58 changed files with 135 additions and 133 deletions

View File

@@ -32,9 +32,9 @@ namespace Content.Server.Verbs.Commands
EntityUid playerEntity = default;
if (!int.TryParse(args[0], out var intPlayerUid))
{
if (args[0] == "self" && shell.Player?.AttachedEntity != null)
if (args[0] == "self" && shell.Player?.AttachedEntity != default)
{
playerEntity = shell.Player.AttachedEntity.Value;
playerEntity = shell.Player.AttachedEntity;
}
else
{