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

@@ -44,13 +44,13 @@ namespace Content.Server.Body.Commands
return;
}
if (player.AttachedEntity == null)
if (player.AttachedEntity == default)
{
shell.WriteLine("You don't have an entity to add a hand to.");
return;
}
entity = player.AttachedEntity.Value;
entity = player.AttachedEntity;
hand = entityManager.SpawnEntity(DefaultHandPrototype, entityManager.GetComponent<TransformComponent>(entity).Coordinates);
break;
}
@@ -75,13 +75,13 @@ namespace Content.Server.Body.Commands
return;
}
if (player.AttachedEntity == null)
if (player.AttachedEntity == default)
{
shell.WriteLine("You don't have an entity to add a hand to.");
return;
}
entity = player.AttachedEntity.Value;
entity = player.AttachedEntity;
hand = entityManager.SpawnEntity(args[0], entityManager.GetComponent<TransformComponent>(entity).Coordinates);
}