Revert "Memory leak fix: Make chunks unload properly (#1406)"

This reverts commit a24318eedc.
This fix introduces broken behavior for dedicated servers. It will be
merged back in once the related issue is fixed
This commit is contained in:
Loki Rautio
2026-03-26 01:37:23 -05:00
parent a24318eedc
commit dee559bd16
4 changed files with 47 additions and 69 deletions

View File

@@ -1690,16 +1690,7 @@ bool PlayerList::isXuidBanned(PlayerUID xuid)
}
// AP added for Vita so the range can be increased once the level starts
void PlayerList::setViewDistance(const int newViewDistance)
void PlayerList::setViewDistance(int newViewDistance)
{
viewDistance = newViewDistance;
for (size_t i = 0; i < server->levels.length; i++)
{
ServerLevel* level = server->levels[i];
if (level != nullptr)
{
level->getChunkMap()->setRadius(newViewDistance);
}
}
}