Fix 3000 errors
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Content.Server.Verbs.Commands
|
||||
var verbSystem = EntitySystem.Get<SharedVerbSystem>();
|
||||
|
||||
// get the 'player' entity (defaulting to command user, otherwise uses a uid)
|
||||
IEntity? playerEntity = null;
|
||||
EntityUid playerEntity = null;
|
||||
if (!int.TryParse(args[0], out var intPlayerUid))
|
||||
{
|
||||
if (args[0] == "self" && shell.Player?.AttachedEntity != null)
|
||||
@@ -42,7 +42,7 @@ namespace Content.Server.Verbs.Commands
|
||||
}
|
||||
else
|
||||
{
|
||||
entityManager.TryGetEntity(new EntityUid(intPlayerUid), out playerEntity);
|
||||
entityManager.EntityExists(new EntityUid(intPlayerUid));
|
||||
}
|
||||
|
||||
// gets the target entity
|
||||
@@ -59,7 +59,7 @@ namespace Content.Server.Verbs.Commands
|
||||
}
|
||||
|
||||
var entUid = new EntityUid(intUid);
|
||||
if (!entityManager.TryGetEntity(entUid, out var target))
|
||||
if (!entityManager.EntityExists(entUid)
|
||||
{
|
||||
shell.WriteError(Loc.GetString("list-verbs-command-invalid-target-entity"));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user