PopupSystem public methods rejig (#12830)

This commit is contained in:
Leon Friedrich
2022-12-19 10:41:47 +13:00
committed by GitHub
parent e459452333
commit 881a2b2ece
164 changed files with 721 additions and 631 deletions

View File

@@ -79,7 +79,7 @@ public sealed class StickySystem : EntitySystem
if (component.StickPopupStart != null)
{
var msg = Loc.GetString(component.StickPopupStart);
_popupSystem.PopupEntity(msg, user, Filter.Entities(user));
_popupSystem.PopupEntity(msg, user, user);
}
// start sticking object to target
@@ -122,7 +122,7 @@ public sealed class StickySystem : EntitySystem
if (component.UnstickPopupStart != null)
{
var msg = Loc.GetString(component.UnstickPopupStart);
_popupSystem.PopupEntity(msg, user, Filter.Entities(user));
_popupSystem.PopupEntity(msg, user, user);
}
// start unsticking object
@@ -166,7 +166,7 @@ public sealed class StickySystem : EntitySystem
if (component.StickPopupSuccess != null)
{
var msg = Loc.GetString(component.StickPopupSuccess);
_popupSystem.PopupEntity(msg, user, Filter.Entities(user));
_popupSystem.PopupEntity(msg, user, user);
}
// send information to appearance that entity is stuck
@@ -207,7 +207,7 @@ public sealed class StickySystem : EntitySystem
if (component.UnstickPopupSuccess != null)
{
var msg = Loc.GetString(component.UnstickPopupSuccess);
_popupSystem.PopupEntity(msg, user, Filter.Entities(user));
_popupSystem.PopupEntity(msg, user, user);
}
component.StuckTo = null;