mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-03 18:10:45 -04:00
[Client] Trigger crimes when using take all on containers
This commit is contained in:
parent
adcac2675a
commit
05b5a7b32d
@ -306,9 +306,19 @@ namespace MWGui
|
|||||||
/*
|
/*
|
||||||
Start of tes3mp addition
|
Start of tes3mp addition
|
||||||
|
|
||||||
|
Trigger crimes related to the attempted taking of these items, if applicable
|
||||||
|
|
||||||
Send an ID_CONTAINER packet every time the Take All button is used on
|
Send an ID_CONTAINER packet every time the Take All button is used on
|
||||||
a container
|
a container
|
||||||
*/
|
*/
|
||||||
|
for (size_t i = 0; i < mModel->getItemCount(); ++i)
|
||||||
|
{
|
||||||
|
const ItemStack& item = mModel->getItem(i);
|
||||||
|
|
||||||
|
if (!onTakeItem(item, item.mCount))
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
mwmp::ObjectList *objectList = mwmp::Main::get().getNetworking()->getObjectList();
|
mwmp::ObjectList *objectList = mwmp::Main::get().getNetworking()->getObjectList();
|
||||||
objectList->reset();
|
objectList->reset();
|
||||||
objectList->packetOrigin = mwmp::CLIENT_GAMEPLAY;
|
objectList->packetOrigin = mwmp::CLIENT_GAMEPLAY;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user