From bb8ddfbc5574a7682594fd15178083f5308766e7 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 12 Aug 2013 15:20:47 +0200 Subject: Getting rid of some magic numbers. --- mcmap/examples/emeraldfinder/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mcmap/examples/emeraldfinder') diff --git a/mcmap/examples/emeraldfinder/main.go b/mcmap/examples/emeraldfinder/main.go index d92ad3c..3249a35 100644 --- a/mcmap/examples/emeraldfinder/main.go +++ b/mcmap/examples/emeraldfinder/main.go @@ -36,9 +36,9 @@ chunkLoop: os.Exit(1) } - for y := 0; y < 256; y++ { - for x := 0; x < 16; x++ { - for z := 0; z < 16; z++ { + for y := 0; y < mcmap.ChunkSizeY; y++ { + for x := 0; x < mcmap.ChunkSizeXZ; x++ { + for z := 0; z < mcmap.ChunkSizeXZ; z++ { blk := chunk.Block(x, y, z) if blk.ID == mcmap.BlkEmeraldOre { absx, absz := mcmap.ChunkToBlock(cx, cz, x, z) -- cgit v1.2.3-70-g09d2