Skip to content

Commit

Permalink
Merge pull request #1682 from Dravere/fixing-incorrect-blocks-renderi…
Browse files Browse the repository at this point in the history
…ng-1578

Fixed incorrect rendering of blocks (issue #1578)
  • Loading branch information
CounterPillow committed Dec 7, 2019
2 parents 6dccdaa + 19086b3 commit 9607636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overviewer_core/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ def _packed_longarray_to_shorts(self, long_array, n):
result[4::8] = ((b[4::7] & 0x07) << 4) | ((b[3::7] & 0xf0) >> 4)
result[5::8] = ((b[5::7] & 0x03) << 5) | ((b[4::7] & 0xf8) >> 3)
result[6::8] = ((b[6::7] & 0x01) << 6) | ((b[5::7] & 0xfc) >> 2)
result[7::8] = (b[6::7] & 0xfc) >> 1
result[7::8] = (b[6::7] & 0xfe) >> 1
# bits_per_value == 8 is handled above
elif bits_per_value == 9:
result[0::8] = ((b[1::9] & 0x01) << 8) | b[0::9]
Expand Down

0 comments on commit 9607636

Please sign in to comment.