From 0a53071671d7baca8cf70aa197881209160becc4 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 17 Aug 2013 11:29:24 +0200 Subject: Fixed saving and cache. --- region_cached.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/region_cached.go b/region_cached.go index 66cea16..2d04c93 100644 --- a/region_cached.go +++ b/region_cached.go @@ -36,6 +36,8 @@ func (cr *CachedRegion) Chunk(x, z int) (*mcmap.Chunk, error) { cr.cacheChunks[j] = cr.cacheChunks[j-1] cr.cachePos[j] = cr.cachePos[j-1] } + cr.cacheChunks[0] = chunk + cr.cachePos[0] = pos return chunk, nil } } -- cgit v1.2.3-70-g09d2