change healing popup to be client only (#18318)
This commit is contained in:
@@ -68,7 +68,7 @@ public sealed class HealingSystem : EntitySystem
|
||||
if (isBleeding != bloodstream.BleedAmount > 0)
|
||||
{
|
||||
dontRepeat = true;
|
||||
_popupSystem.PopupEntity(Loc.GetString("medical-item-stop-bleeding"), uid);
|
||||
_popupSystem.PopupEntity(Loc.GetString("medical-item-stop-bleeding"), uid, args.User);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ public sealed class HealingSystem : EntitySystem
|
||||
// Logic to determine the whether or not to repeat the healing action
|
||||
args.Repeat = (HasDamage(component, healing) && !dontRepeat);
|
||||
if (!args.Repeat && !dontRepeat)
|
||||
_popupSystem.PopupEntity(Loc.GetString("medical-item-finished-using", ("item", args.Used)), uid);
|
||||
_popupSystem.PopupEntity(Loc.GetString("medical-item-finished-using", ("item", args.Used)), uid, args.User);
|
||||
args.Handled = true;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ public sealed class HealingSystem : EntitySystem
|
||||
|
||||
if (!HasDamage(targetDamage, component) && !(bloodstream.BloodSolution.Volume < bloodstream.BloodSolution.MaxVolume && component.ModifyBloodLevel > 0))
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("medical-item-cant-use", ("item", uid)), uid);
|
||||
_popupSystem.PopupEntity(Loc.GetString("medical-item-cant-use", ("item", uid)), uid, user);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user