Skip to content

Commit

Permalink
Fixes wrong math in blending lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Jan 10, 2023
1 parent 925e2e7 commit 9af43ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void setBlendingInfo(ChunkPos pos, List<BitSet> bitSets) {
for(int j = chunkPos2.getRegionZ(); j <= chunkPos3.getRegionZ(); ++j) {
BitSet bitSet = bitSets.get(index ++);
if (!bitSet.isEmpty()) {
ChunkPos chunkPos4 = ChunkPos.fromRegion(chunkPos2.x + i, chunkPos2.z + j);
ChunkPos chunkPos4 = ChunkPos.fromRegion(i, j);
int k = Math.max(chunkPos2.x - chunkPos4.x, 0);
int l = Math.max(chunkPos2.z - chunkPos4.z, 0);
int m = Math.min(chunkPos3.x - chunkPos4.x, 31);
Expand Down

0 comments on commit 9af43ef

Please sign in to comment.