summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--region_cached.go2
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
}
}