Fixes store purchase events and adds support to raise a directed event (#26389)
* fixes store event check * raise directed product event
This commit is contained in:
@@ -249,10 +249,12 @@ public sealed partial class StoreSystem
|
||||
HandleRefundComp(uid, component, upgradeActionId.Value);
|
||||
}
|
||||
|
||||
//broadcast event
|
||||
if (listing.ProductEvent != null)
|
||||
{
|
||||
RaiseLocalEvent(listing.ProductEvent);
|
||||
if (!listing.RaiseProductEventOnUser)
|
||||
RaiseLocalEvent(listing.ProductEvent);
|
||||
else
|
||||
RaiseLocalEvent(buyer, listing.ProductEvent);
|
||||
}
|
||||
|
||||
//log dat shit.
|
||||
|
||||
Reference in New Issue
Block a user