mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-06 02:51:35 +00:00
[Client] Fix sending of inventory packets after certain alchemy failures
This commit is contained in:
parent
bb5aa90a6d
commit
238690653b
1 changed files with 12 additions and 0 deletions
|
@ -553,8 +553,20 @@ MWMechanics::Alchemy::Result MWMechanics::Alchemy::create (const std::string& na
|
||||||
if (readyStatus == Result_NoEffects)
|
if (readyStatus == Result_NoEffects)
|
||||||
removeIngredients();
|
removeIngredients();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Start of tes3mp change (minor)
|
||||||
|
|
||||||
|
Set avoidSendingInventoryPackets to false again if this has not been a successful
|
||||||
|
potion creation
|
||||||
|
*/
|
||||||
if (readyStatus != Result_Success)
|
if (readyStatus != Result_Success)
|
||||||
|
{
|
||||||
|
mwmp::Main::get().getLocalPlayer()->avoidSendingInventoryPackets = false;
|
||||||
return readyStatus;
|
return readyStatus;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
End of tes3mp change (major)
|
||||||
|
*/
|
||||||
|
|
||||||
Result result = Result_RandomFailure;
|
Result result = Result_RandomFailure;
|
||||||
int brewedCount = 0;
|
int brewedCount = 0;
|
||||||
|
|
Loading…
Reference in a new issue