mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-06-07 11:15:10 +00:00
Support for TU24 has been extended.
Since the TU25 update still requires a lot of work and the TU24 version does not yet include all the features, I have decided to continue working with the TU24 version for now. Merge latest changes from Minecraft Consoles: * Added support for Big-Endian DLCs. * Fix redstone tick persistence on chunk unload. * Fix pistons permanently breaking server-wide on dedicated servers. * Fix Ender Dragon damage and End Poem crash. * Disable font mipmapping to get rid of artifacts on signs. Other: * Music Fixes. * Added missing sounds (Caves, Horse Eat, Sheep Shear, Water Swim, Thorns) * Remove duplicated sounds. * Added High Quality ver of "The End Dragon Alive" music. * Fix Mobs sounds volume. * Added Old Swing Animation Option. * Added Graphics Mode (Potato, Fast, Fancy and Extra) * Fix a small memory leak with signs. * Fixed Pig Zombies attacking creative players.
This commit is contained in:
@@ -792,14 +792,6 @@ void PlayerChunkMap::setRadius(int newRadius)
|
||||
int xc = static_cast<int>(player->x) >> 4;
|
||||
int zc = static_cast<int>(player->z) >> 4;
|
||||
|
||||
for (auto it = addRequests.begin(); it != addRequests.end(); )
|
||||
{
|
||||
if (it->player == player)
|
||||
it = addRequests.erase(it);
|
||||
else
|
||||
++it;
|
||||
}
|
||||
|
||||
for (int x = xc - newRadius; x <= xc + newRadius; x++)
|
||||
for (int z = zc - newRadius; z <= zc + newRadius; z++)
|
||||
{
|
||||
@@ -809,26 +801,9 @@ void PlayerChunkMap::setRadius(int newRadius)
|
||||
getChunkAndAddPlayer(x, z, player);
|
||||
}
|
||||
}
|
||||
|
||||
// Remove chunks that are outside the new radius
|
||||
for (int x = xc - radius; x <= xc + radius; x++)
|
||||
{
|
||||
for (int z = zc - radius; z <= zc + radius; z++)
|
||||
{
|
||||
if (x < xc - newRadius || x > xc + newRadius || z < zc - newRadius || z > zc + newRadius)
|
||||
{
|
||||
getChunkAndRemovePlayer(x, z, player);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (newRadius < radius)
|
||||
{
|
||||
level->cache->dropAll();
|
||||
}
|
||||
|
||||
assert(radius <= MAX_VIEW_DISTANCE);
|
||||
assert(radius >= MIN_VIEW_DISTANCE);
|
||||
this->radius = newRadius;
|
||||
|
||||
Reference in New Issue
Block a user