Skip to content

Commit 9af43ef

Browse files
committed
Fixes wrong math in blending lookup
1 parent 925e2e7 commit 9af43ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c2me-threading-chunkio/src/main/java/com/ishland/c2me/threading/chunkio/mixin/MixinProtoChunk.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void setBlendingInfo(ChunkPos pos, List<BitSet> bitSets) {
2828
for(int j = chunkPos2.getRegionZ(); j <= chunkPos3.getRegionZ(); ++j) {
2929
BitSet bitSet = bitSets.get(index ++);
3030
if (!bitSet.isEmpty()) {
31-
ChunkPos chunkPos4 = ChunkPos.fromRegion(chunkPos2.x + i, chunkPos2.z + j);
31+
ChunkPos chunkPos4 = ChunkPos.fromRegion(i, j);
3232
int k = Math.max(chunkPos2.x - chunkPos4.x, 0);
3333
int l = Math.max(chunkPos2.z - chunkPos4.z, 0);
3434
int m = Math.min(chunkPos3.x - chunkPos4.x, 31);

0 commit comments

Comments
 (0)