diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-08-17 11:29:24 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-08-17 11:44:40 +0200 |
commit | 0a53071671d7baca8cf70aa197881209160becc4 (patch) | |
tree | 5903d3187dfeb342d8ee213c769b8f0bf78a9d99 | |
parent | f73b991b66a001e2978494fdc7c5bedb8a4c3fbc (diff) | |
download | biomed-0a53071671d7baca8cf70aa197881209160becc4.tar.gz biomed-0a53071671d7baca8cf70aa197881209160becc4.tar.bz2 biomed-0a53071671d7baca8cf70aa197881209160becc4.zip |
Fixed saving and cache.
-rw-r--r-- | region_cached.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 } } |