From 40b8da6d026d43328242b252aea3a09f8939e756 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 12 Aug 2013 14:50:54 +0200 Subject: Added some documentation. --- mcmap/region.go | 1 + 1 file changed, 1 insertion(+) (limited to 'mcmap/region.go') 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} -- cgit v1.2.3-54-g00ecf