Skip to content

Commit

Permalink
Fixed the build
Browse files Browse the repository at this point in the history
  • Loading branch information
gamingrobot committed Apr 25, 2016
1 parent b949f60 commit bca8743
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spockbot/plugins/tools/smpmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from spockbot.mcp.datautils import unpack_varint



DIMENSION_NETHER = -0x01
DIMENSION_OVERWOLD = 0x00
DIMENSION_END = 0x01
Expand Down Expand Up @@ -166,9 +165,8 @@ def unpack(self, buff):
block = (block_data[start_long] >> start_offset) & max_value
else:
end_offset = 64 - start_offset
block = (block_data[start_long] >> start_offset
| block_data[end_long] << end_offset
) & max_value
block = (block_data[start_long] >> start_offset |
block_data[end_long] << end_offset) & max_value

if uses_palette: # convert to global palette
blocks[i] = palette[block]
Expand Down

0 comments on commit bca8743

Please sign in to comment.