fix: player not spawning entity after set_suspended(pid, false)

This commit is contained in:
MihailRis 2026-01-09 02:36:13 +03:00
parent d9a914ee54
commit 088bfc878e

View file

@ -99,7 +99,7 @@ void Players::suspend(int64_t id) {
}
player->setSuspended(true);
level.entities->despawn(player->getEntity());
player->setEntity(0);
player->setEntity(ENTITY_AUTO);
}
}