Skip to content

Commit

Permalink
git clone recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
babbaj committed Oct 14, 2023
1 parent 654eba1 commit 91731a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Setup Gradle
uses: ./.github/actions/build-deps
- name: Setup Gradle
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
- name: Run gradle build
run: cd java && ./gradlew build
run: cd java && ./gradlew build
5 changes: 1 addition & 4 deletions src/baritone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void parseAndInsertChunk(cache_t& cache, int chunkX, int chunkZ, std::span<const
}
}
it->second = std::move(chunk);
std::cout << "inserted chunk at " << chunkX << ", " << chunkZ << std::endl;
//std::cout << "inserted chunk at " << chunkX << ", " << chunkZ << std::endl;
}
}

Expand All @@ -67,16 +67,13 @@ void parseBaritoneRegion(cache_t& cache, RegionPos regionPos, gzFile data) {
puts("Bad magic");
std::terminate();
}
int insertedChunks = 0;
for (int x = 0; x < 32; x++) {
for (int z = 0; z < 32; z++) {
const int8_t present = decomp<1>(data)[0];
if (present == 1) {
// DimensionType.height for the nether is 256 and that is what is used for serializing to disk
constexpr auto chunkSizeBytes = (2 * 16 * 16 * 256) / 8;

parseAndInsertChunk(cache, x + 32 * regionPos.x, z + 32 * regionPos.z, decomp<chunkSizeBytes>(data));
insertedChunks++;
}
}
}
Expand Down

0 comments on commit 91731a7

Please sign in to comment.