summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-12 14:28:23 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-12 14:28:23 +0200
commit8fe88da35d5c2aebb8aea1e223a259330e3f5f6a (patch)
tree6a158f772980bd108261f201be4a1df1075cb2cb
parent65f67f3c57b4363af93ab09f5421f8089e49e704 (diff)
downloadgomcmap-8fe88da35d5c2aebb8aea1e223a259330e3f5f6a.tar.gz
gomcmap-8fe88da35d5c2aebb8aea1e223a259330e3f5f6a.tar.bz2
gomcmap-8fe88da35d5c2aebb8aea1e223a259330e3f5f6a.zip
Fixed MaxDims and UnloadChunk.
-rw-r--r--mcmap/region.go12
1 files changed, 6 insertions, 6 deletions
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}
}