diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-08-12 14:50:54 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-08-12 14:50:54 +0200 |
commit | 40b8da6d026d43328242b252aea3a09f8939e756 (patch) | |
tree | 489c429211ce9f0b6e1c638954f3a938f6a3bd57 /mcmap/region.go | |
parent | 59d3426e7619b9f30aa4fbf6f0862530e39f7ee6 (diff) | |
download | gomcmap-40b8da6d026d43328242b252aea3a09f8939e756.tar.gz gomcmap-40b8da6d026d43328242b252aea3a09f8939e756.tar.bz2 gomcmap-40b8da6d026d43328242b252aea3a09f8939e756.zip |
Added some documentation.
Diffstat (limited to 'mcmap/region.go')
-rw-r--r-- | mcmap/region.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mcmap/region.go b/mcmap/region.go index 25c6d19..67966aa 100644 --- a/mcmap/region.go +++ b/mcmap/region.go @@ -176,6 +176,7 @@ func (reg *Region) cleanSuperchunks(forceSave bool) error { return nil } +// Chunk returns the chunk at x, z. If no chunk could be found, the error NotAvailable will be returned. Other errors indicate an internal error (I/O error, file format violated, ...) func (reg *Region) Chunk(x, z int) (*Chunk, error) { scx, scz, cx, cz := chunkToSuperchunk(x, z) scPos := XZPos{scx, scz} |