Inline UID
This commit is contained in:
@@ -24,8 +24,8 @@ public sealed class InstrumentComponent : SharedInstrumentComponent
|
||||
public int MidiEventCount = 0;
|
||||
|
||||
public IPlayerSession? InstrumentPlayer =>
|
||||
IoCManager.Resolve<IEntityManager>().GetComponentOrNull<ActivatableUIComponent>(Owner.Uid)?.CurrentSingleUser
|
||||
?? IoCManager.Resolve<IEntityManager>().GetComponentOrNull<ActorComponent>(Owner.Uid)?.PlayerSession;
|
||||
IoCManager.Resolve<IEntityManager>().GetComponentOrNull<ActivatableUIComponent>(Owner)?.CurrentSingleUser
|
||||
?? IoCManager.Resolve<IEntityManager>().GetComponentOrNull<ActorComponent>(Owner)?.PlayerSession;
|
||||
|
||||
[ViewVariables] public BoundUserInterface? UserInterface => Owner.GetUIOrNull(InstrumentUiKey.Key);
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ public sealed partial class InstrumentSystem : SharedInstrumentSystem
|
||||
|
||||
if (mob != null)
|
||||
{
|
||||
_stunSystem.TryParalyze(mob.Uid, TimeSpan.FromSeconds(1));
|
||||
_stunSystem.TryParalyze(mob, TimeSpan.FromSeconds(1));
|
||||
|
||||
instrument.Owner.PopupMessage(mob, "instrument-component-finger-cramps-max-message");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user