mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
Fix an edge case for sending a no drop item within a parcel (#4865)
This commit is contained in:
parent
9869da2a0a
commit
0ec07daebb
@ -409,6 +409,13 @@ void Client::DoParcelSend(const Parcel_Struct *parcel_in)
|
|||||||
parcel_out.aug_slot_6 = augs.at(5);
|
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);
|
auto result = CharacterParcelsRepository::InsertOne(database, parcel_out);
|
||||||
if (!result.id) {
|
if (!result.id) {
|
||||||
LogError(
|
LogError(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user