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,6 +288,7 @@ void UniverseClient::update(float dt) {
if (Time::monotonicMilliseconds() >= m_storageTriggerDeadline) { if (Time::monotonicMilliseconds() >= m_storageTriggerDeadline) {
if (m_mainPlayer) { if (m_mainPlayer) {
m_playerStorage->savePlayer(m_mainPlayer); m_playerStorage->savePlayer(m_mainPlayer);
if (playerIsOriginal())
m_playerStorage->moveToFront(m_mainPlayer->uuid()); m_playerStorage->moveToFront(m_mainPlayer->uuid());
} }