Add PopupPredictedCursor and fix doubled popups on vending machines (#36655)
* Add PopupCursorPredicted method * Fix doubled popups on vending machine restock failures * Rename to match existing pattern
This commit is contained in:
@@ -35,6 +35,16 @@ namespace Content.Server.Popups
|
||||
RaiseNetworkEvent(new PopupCursorEvent(message, type), actor.PlayerSession);
|
||||
}
|
||||
|
||||
public override void PopupPredictedCursor(string? message, ICommonSession recipient, PopupType type = PopupType.Small)
|
||||
{
|
||||
// Do nothing, since the client already predicted the popup.
|
||||
}
|
||||
|
||||
public override void PopupPredictedCursor(string? message, EntityUid recipient, PopupType type = PopupType.Small)
|
||||
{
|
||||
// Do nothing, since the client already predicted the popup.
|
||||
}
|
||||
|
||||
public override void PopupCoordinates(string? message, EntityCoordinates coordinates, Filter filter, bool replayRecord, PopupType type = PopupType.Small)
|
||||
{
|
||||
if (message == null)
|
||||
|
||||
Reference in New Issue
Block a user