mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-16 13:23:50 +00:00
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:
parent
a24318eedc
commit
dee559bd16
4 changed files with 47 additions and 69 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue