* Fix toilet suicide

* Fix ghost ghosting

* Clean suicide system
This commit is contained in:
wrexbe
2022-05-12 16:09:15 -07:00
committed by GitHub
parent f8f5a7fbf3
commit 3467a83d97
4 changed files with 125 additions and 154 deletions

View File

@@ -154,7 +154,7 @@ namespace Content.Server.GameTicking
if (handleEv.Handled)
return handleEv.Result;
var playerEntity = mind.OwnedEntity;
var playerEntity = mind.CurrentEntity;
var entities = IoCManager.Resolve<IEntityManager>();
if (entities.HasComponent<GhostComponent>(playerEntity))