args.Handled = true;
SetInCombatMode(uid, !component.IsInCombatMode, component);
- // TODO better handling of predicted pop-ups.
- // This probably breaks if the client has prediction disabled.
-
- if (!_netMan.IsClient || !Timing.IsFirstTimePredicted)
- return;
-
var msg = component.IsInCombatMode ? "action-popup-combat-enabled" : "action-popup-combat-disabled";
- _popup.PopupEntity(Loc.GetString(msg), args.Performer, args.Performer);
+ _popup.PopupClient(Loc.GetString(msg), args.Performer, args.Performer);
}
public void SetCanDisarm(EntityUid entity, bool canDisarm, CombatModeComponent? component = null)