Compare commits

...
2 Commits
Author SHA1 Message Date
aae90342e5 Protect some calls that lead to loadChunk with blockExists (#53) (#72)
Co-authored-by: Yurii <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
Co-authored-by: micvog <[email protected]>
2026-11-19 05:05:19 +01:00
UltraProdigy 0d13cd0993 ci: run build and test on release branches 2026-11-09 01:10:49 -05:00
2 changed files with 5 additions and 2 deletions

No files matched your search

+2 -2
View File
@@ -3,9 +3,9 @@ name: Build and test
on:
pull_request:
branches: [ master, main ]
branches: [ master, main, release/** ]
push:
branches: [ master, main ]
branches: [ master, main, release/** ]
jobs:
build-and-test:
@@ -58,6 +58,9 @@ public class BlockUtil {
for (int chunkX = minChunkX; chunkX <= maxChunkX; ++chunkX) {
for (int chunkZ = minChunkZ; chunkZ <= maxChunkZ; ++chunkZ) {
if (!world.blockExists(chunkX << 4, 0, chunkZ << 4)) {
continue;
}
Chunk chunk = world.getChunkFromChunkCoords(chunkX, chunkZ);
if (chunk != null) searchChunks.add(chunk);
}