Working rendering with the new McRegion format.
Notes: * Currently only works with -p 1 * Caching is mostly compatible with existing caches, but not completly. This needs more testing and more code reviews * There are probably many code paths that will throw exceptions. * Not ready for general use yet, but is OK for testing
This commit is contained in:
3
nbt.py
3
nbt.py
@@ -34,7 +34,8 @@ def load(fileobj):
|
||||
def load_from_region(fileobj, x, y):
|
||||
nbt = MCRFileReader(fileobj).load_chunk(x, y)
|
||||
if not nbt:
|
||||
raise IOError("No such chunk in region: (%i, %i)" % (x, y))
|
||||
return None ## return none. I think this is who we should indicate missing chunks
|
||||
#raise IOError("No such chunk in region: (%i, %i)" % (x, y))
|
||||
return nbt.read_all()
|
||||
|
||||
class NBTFileReader(object):
|
||||
|
||||
Reference in New Issue
Block a user