From 8fe88da35d5c2aebb8aea1e223a259330e3f5f6a Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 12 Aug 2013 14:28:23 +0200 Subject: Fixed MaxDims and UnloadChunk. --- mcmap/region.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mcmap') diff --git a/mcmap/region.go b/mcmap/region.go index 8467bbf..25c6d19 100644 --- a/mcmap/region.go +++ b/mcmap/region.go @@ -97,10 +97,10 @@ func (reg *Region) MaxDims() (xmin, xmax, zmin, zmax int) { xmax++ zmax++ - xmin *= 16 - xmax *= 16 - zmin *= 16 - zmax *= 16 + xmin *= 32 + xmax *= 32 + zmin *= 32 + zmax *= 32 return } @@ -250,8 +250,8 @@ func (reg *Region) AllChunks() <-chan XZPos { go func(ch chan<- XZPos) { for spos, _ := range reg.superchunksAvail { scx, scz := spos.X, spos.Z - for rx := 0; rx < 16; rx++ { - for rz := 0; rz < 16; rz++ { + for rx := 0; rx < 32; rx++ { + for rz := 0; rz < 32; rz++ { cx, cz := superchunkToChunk(scx, scz, rx, rz) ch <- XZPos{cx, cz} } -- cgit v1.2.3-70-g09d2