Skip to content

Instantly share code, notes, and snippets.

@ghazel
Created October 20, 2010 12:48
Show Gist options
  • Save ghazel/636348 to your computer and use it in GitHub Desktop.
Save ghazel/636348 to your computer and use it in GitHub Desktop.
@_o
def read_map_chunk(self):
x = yield self.read_int()
y = yield self.read_short()
z = yield self.read_int()
size_x = yield self.read_byte()
size_y = yield self.read_byte()
size_z = yield self.read_byte()
compressed_chunk_size = yield self.read_int()
compressed_chunk = yield self.client.read(compressed_chunk_size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment