Permalink
Browse files

Run 'go fmt' on the source

  • Loading branch information...
quag committed Apr 3, 2012
1 parent 736b197 commit e95ec00a52520951b346cf0c60c77f24321b0158
Showing with 5 additions and 5 deletions.
  1. +1 −1 cmd/anvil/anvil.go
  2. +4 −4 nbt/chunk.go
View
@@ -2,8 +2,8 @@ package main
import (
"fmt"
"github.com/quag/mcobj/nbt"
"github.com/quag/mcobj/mcworld"
"github.com/quag/mcobj/nbt"
"os"
)
View
@@ -71,21 +71,21 @@ func ReadChunkNbt(reader io.Reader) (*Chunk, error) {
func indexToCoords(i, aMax, bMax int) (a, b, c int) {
a = i % aMax
b = (i / aMax) % bMax
c = i / (aMax*bMax)
c = i / (aMax * bMax)
return
}
func coordsToIndex(a, b, c, bMax, cMax int) int {
return c + cMax*(b + bMax*a)
return c + cMax*(b+bMax*a)
}
func yzxToXzy(yzx, xMax, zMax, yMax int) int {
x := yzx % xMax
z := (yzx / xMax) % zMax
y := (yzx / (xMax*zMax)) % yMax
y := (yzx / (xMax * zMax)) % yMax
// yzx := x + xMax*(z + zMax*y)
xzy := y + yMax*(z + zMax*x)
xzy := y + yMax*(z+zMax*x)
return xzy
}

0 comments on commit e95ec00

Please sign in to comment.