PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Content.Server.Construction.Completions
|
||||
public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager)
|
||||
{
|
||||
entityManager.EntitySysManager.GetEntitySystem<PopupSystem>()
|
||||
.PopupEntity(Loc.GetString(Text), uid, Filter.Pvs(uid, entityManager:entityManager));
|
||||
.PopupEntity(Loc.GetString(Text), uid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Content.Server.Popups;
|
||||
using Content.Server.Popups;
|
||||
using Content.Shared.Construction;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Player;
|
||||
@@ -20,9 +20,9 @@ namespace Content.Server.Construction.Completions
|
||||
var popupSystem = entityManager.EntitySysManager.GetEntitySystem<PopupSystem>();
|
||||
|
||||
if(Cursor)
|
||||
popupSystem.PopupCursor(Loc.GetString(Text), Filter.Entities(userUid.Value));
|
||||
popupSystem.PopupCursor(Loc.GetString(Text), userUid.Value);
|
||||
else
|
||||
popupSystem.PopupEntity(Loc.GetString(Text), uid, Filter.Entities(userUid.Value));
|
||||
popupSystem.PopupEntity(Loc.GetString(Text), uid, userUid.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user