mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-22 12:00:13 -04:00
[Client] Prevent player from auto-equipping items taken from containers
This commit is contained in:
parent
15fdac3f6c
commit
4aa947ff4b
@ -274,7 +274,7 @@ void ObjectList::editContainers(MWWorld::CellStore* cellStore)
|
||||
{
|
||||
MWWorld::Ptr ptrPlayer = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||
MWWorld::ContainerStore &playerStore = ptrPlayer.getClass().getContainerStore(ptrPlayer);
|
||||
*playerStore.add(itemPtr, containerItem.actionCount, ownerPtr);
|
||||
*playerStore.add(itemPtr, containerItem.actionCount, ownerPtr, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user