From 230c827d579d868327f7b0ef31284e1154c80f06 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 12 Aug 2013 14:59:37 +0200 Subject: Chunks are now marked at unused in a function of Chunk. --- mcmap/prechunk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mcmap/prechunk.go') 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 { -- cgit v1.2.3-54-g00ecf