13
0
geforkt von Mirrors/Paper

Update last chunk position in findSupportingBlock

Fixes fetching chunks needlessly multiple times.

Thanks Lulu13022002 for pointing this out
Dieser Commit ist enthalten in:
Spottedleaf 2024-07-13 11:44:52 -07:00
Ursprung 1b20e12355
Commit 7c3194af85

Datei anzeigen

@ -31694,6 +31694,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ final int newChunkZ = currZ >> 4;
+
+ if (((newChunkX ^ lastChunkX) | (newChunkZ ^ lastChunkZ)) != 0) {
+ lastChunkX = newChunkX;
+ lastChunkZ = newChunkZ;
+ lastChunk = (LevelChunk)chunkSource.getChunk(newChunkX, newChunkZ, ChunkStatus.FULL, false);
+ }
+