Fix an edge case for sending a no drop item within a parcel (#4865)

This commit is contained in:
Mitch Freeman 2025-04-28 18:43:31 -03:00 committed by GitHub
parent 9869da2a0a
commit 0ec07daebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -409,6 +409,13 @@ void Client::DoParcelSend(const Parcel_Struct *parcel_in)
parcel_out.aug_slot_6 = augs.at(5);
}
if (!inst->IsDroppable(true)) {
Message(Chat::Yellow, "Unable to send a parcel that is NO-DROP or contains a NO-DROP item.");
SendParcelAck();
DoParcelCancel();
return;
}
auto result = CharacterParcelsRepository::InsertOne(database, parcel_out);
if (!result.id) {
LogError(