forked from teamnwah/openmw-tes3coop
[Client] Don't send ObjectState packets for items in containers
This commit is contained in:
parent
0820b7e92b
commit
ac27ca663b
1 changed files with 2 additions and 2 deletions
|
@ -592,7 +592,7 @@ namespace MWScript
|
||||||
*/
|
*/
|
||||||
if (mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen())
|
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();
|
mwmp::WorldEvent *worldEvent = mwmp::Main::get().getNetworking()->getWorldEvent();
|
||||||
worldEvent->reset();
|
worldEvent->reset();
|
||||||
|
@ -620,7 +620,7 @@ namespace MWScript
|
||||||
*/
|
*/
|
||||||
if (mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen())
|
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();
|
mwmp::WorldEvent *worldEvent = mwmp::Main::get().getNetworking()->getWorldEvent();
|
||||||
worldEvent->reset();
|
worldEvent->reset();
|
||||||
|
|
Loading…
Reference in a new issue