summaryrefslogtreecommitdiff
path: root/mcmap/prechunk.go
diff options
context:
space:
mode:
Diffstat (limited to 'mcmap/prechunk.go')
-rw-r--r--mcmap/prechunk.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcmap/prechunk.go b/mcmap/prechunk.go
index 89febe7..ae0ea2a 100644
--- a/mcmap/prechunk.go
+++ b/mcmap/prechunk.go
@@ -83,8 +83,8 @@ func (pc *preChunk) getLevelTag() (nbt.TagCompound, error) {
return lvl, nil
}
-func (pc *preChunk) toChunk() (*Chunk, error) {
- c := Chunk{ts: pc.ts}
+func (pc *preChunk) toChunk(reg *Region) (*Chunk, error) {
+ c := Chunk{ts: pc.ts, reg: reg}
lvl, err := pc.getLevelTag()
if err != nil {