1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-06 01:45:33 +00:00

[Client] Fix sending of inventory packets after certain alchemy failures

This commit is contained in:
David Cernat 2022-04-06 01:12:45 +03:00
parent bb5aa90a6d
commit 238690653b

View file

@ -553,8 +553,20 @@ MWMechanics::Alchemy::Result MWMechanics::Alchemy::create (const std::string& na
if (readyStatus == Result_NoEffects)
removeIngredients();
/*
Start of tes3mp change (minor)
Set avoidSendingInventoryPackets to false again if this has not been a successful
potion creation
*/
if (readyStatus != Result_Success)
{
mwmp::Main::get().getLocalPlayer()->avoidSendingInventoryPackets = false;
return readyStatus;
}
/*
End of tes3mp change (major)
*/
Result result = Result_RandomFailure;
int brewedCount = 0;