Resolves Bible summon message being sent to all users (#28104)

* Changed PopupEntity overload used to ensure message is only sent to user

* Updated uid for PopupEntity call

* Updating _popupSystem.PopupEntity call in AttemptSummon
This commit is contained in:
double_b
2024-05-18 14:23:16 +00:00
committed by GitHub
parent 37382b3186
commit 0525c63332

View File

@@ -241,7 +241,7 @@ namespace Content.Server.Bible
// If this is going to use a ghost role mob spawner, attach it to the bible. // If this is going to use a ghost role mob spawner, attach it to the bible.
if (HasComp<GhostRoleMobSpawnerComponent>(familiar)) if (HasComp<GhostRoleMobSpawnerComponent>(familiar))
{ {
_popupSystem.PopupEntity(Loc.GetString("bible-summon-requested"), user, PopupType.Medium); _popupSystem.PopupEntity(Loc.GetString("bible-summon-requested"), user, user, PopupType.Medium);
_transform.SetParent(familiar, uid); _transform.SetParent(familiar, uid);
} }
component.AlreadySummoned = true; component.AlreadySummoned = true;