[Client] Don't send ObjectState packets for items in containers

0.6.1
David Cernat 7 years ago
parent 0820b7e92b
commit ac27ca663b

@ -592,7 +592,7 @@ namespace MWScript
*/
if (mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen())
{
if (!ref.getRefData().isEnabled() && ref.getCell() != nullptr)
if (ref.isInCell() && !ref.getRefData().isEnabled())
{
mwmp::WorldEvent *worldEvent = mwmp::Main::get().getNetworking()->getWorldEvent();
worldEvent->reset();
@ -620,7 +620,7 @@ namespace MWScript
*/
if (mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen())
{
if (ref.getRefData().isEnabled() && ref.getCell() != nullptr)
if (ref.isInCell() && ref.getRefData().isEnabled())
{
mwmp::WorldEvent *worldEvent = mwmp::Main::get().getNetworking()->getWorldEvent();
worldEvent->reset();

Loading…
Cancel
Save