Delete ghost when respawning (#3519)
* Delete ghost when respawning Fix session.AttachedEntity not being set to null when mind is wiped Fix MindComponent not getting disconnected when Mind is wiped Rename OwnedMob to OwnedComponent * Update Content.Server/GameTicking/GameTicker.cs Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Content.Server.Commands.Mobs
|
||||
var mind = data.ContentData().Mind;
|
||||
|
||||
var builder = new StringBuilder();
|
||||
builder.AppendFormat("player: {0}, mob: {1}\nroles: ", mind.UserId, mind.OwnedMob?.Owner?.Uid);
|
||||
builder.AppendFormat("player: {0}, mob: {1}\nroles: ", mind.UserId, mind.OwnedComponent?.Owner?.Uid);
|
||||
foreach (var role in mind.AllRoles)
|
||||
{
|
||||
builder.AppendFormat("{0} ", role.Name);
|
||||
|
||||
Reference in New Issue
Block a user