mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-06 10:25:32 +00:00
chore: format everything
This commit is contained in:
@@ -481,7 +481,6 @@ int LevelChunk::getHighestSectionPosition() {
|
||||
void LevelChunk::recalcBlockLights() {}
|
||||
|
||||
void LevelChunk::recalcHeightmapOnly() {
|
||||
|
||||
int min = Level::maxBuildHeight - 1;
|
||||
for (int x = 0; x < 16; x++)
|
||||
for (int z = 0; z < 16; z++) {
|
||||
@@ -490,8 +489,8 @@ void LevelChunk::recalcHeightmapOnly() {
|
||||
// value changed from -999 to 255
|
||||
|
||||
int y = Level::maxBuildHeight - 1;
|
||||
// int p = x << level->depthBitsPlusFour | z <<
|
||||
// level->depthBits; // 4J - removed
|
||||
// int p = x << level->depthBitsPlusFour | z <<
|
||||
// level->depthBits; // 4J - removed
|
||||
CompressedTileStorage* blocks =
|
||||
(y - 1) >= Level::COMPRESSED_CHUNK_SECTION_HEIGHT ? upperBlocks
|
||||
: lowerBlocks;
|
||||
@@ -516,7 +515,6 @@ void LevelChunk::recalcHeightmapOnly() {
|
||||
|
||||
this->minHeight = min;
|
||||
this->setUnsaved(true);
|
||||
|
||||
}
|
||||
|
||||
void LevelChunk::recalcHeightmap() {
|
||||
@@ -526,8 +524,8 @@ void LevelChunk::recalcHeightmap() {
|
||||
for (int x = 0; x < 16; x++)
|
||||
for (int z = 0; z < 16; z++) {
|
||||
int y = Level::maxBuildHeight - 1;
|
||||
// int p = x << level->depthBitsPlusFour | z <<
|
||||
// level->depthBits; // 4J - removed
|
||||
// int p = x << level->depthBitsPlusFour | z <<
|
||||
// level->depthBits; // 4J - removed
|
||||
|
||||
CompressedTileStorage* blocks =
|
||||
(y - 1) >= Level::COMPRESSED_CHUNK_SECTION_HEIGHT ? upperBlocks
|
||||
@@ -591,7 +589,6 @@ void LevelChunk::recalcHeightmap() {
|
||||
}
|
||||
|
||||
this->setUnsaved(true);
|
||||
|
||||
}
|
||||
|
||||
// 4J - this code is fully commented out in the java version, but we have
|
||||
@@ -1418,8 +1415,7 @@ void LevelChunk::load() {
|
||||
|
||||
std::vector<std::shared_ptr<TileEntity> > values;
|
||||
EnterCriticalSection(&m_csTileEntities);
|
||||
for (auto it = tileEntities.begin(); it != tileEntities.end();
|
||||
it++) {
|
||||
for (auto it = tileEntities.begin(); it != tileEntities.end(); it++) {
|
||||
values.push_back(it->second);
|
||||
}
|
||||
LeaveCriticalSection(&m_csTileEntities);
|
||||
@@ -1451,8 +1447,7 @@ void LevelChunk::unload(bool unloadTileEntities) // 4J - added parameter
|
||||
if (unloadTileEntities) {
|
||||
std::vector<std::shared_ptr<TileEntity> > tileEntitiesToRemove;
|
||||
EnterCriticalSection(&m_csTileEntities);
|
||||
for (auto it = tileEntities.begin(); it != tileEntities.end();
|
||||
it++) {
|
||||
for (auto it = tileEntities.begin(); it != tileEntities.end(); it++) {
|
||||
tileEntitiesToRemove.push_back(it->second);
|
||||
}
|
||||
LeaveCriticalSection(&m_csTileEntities);
|
||||
|
||||
Reference in New Issue
Block a user