Don't trigger player slot reordering when autosaving after swapped

This commit is contained in:
Kae 2024-10-11 05:16:09 +11:00
parent 5db9e4e1c5
commit c9d45daac9

View File

@ -288,7 +288,8 @@ void UniverseClient::update(float dt) {
if (Time::monotonicMilliseconds() >= m_storageTriggerDeadline) {
if (m_mainPlayer) {
m_playerStorage->savePlayer(m_mainPlayer);
m_playerStorage->moveToFront(m_mainPlayer->uuid());
if (playerIsOriginal())
m_playerStorage->moveToFront(m_mainPlayer->uuid());
}
m_storageTriggerDeadline = Time::monotonicMilliseconds() + assets->json("/client.config:storageTriggerInterval").toUInt();