summaryrefslogtreecommitdiff
path: root/mcmap/examples/emeraldfinder
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-12 12:50:57 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-12 12:50:57 +0200
commita44c4ad107a197a92e9ffdde38593fd7012a309e (patch)
tree8b9f1652f1fa516dd1cfed47c4f03187fbf00117 /mcmap/examples/emeraldfinder
parentb9be995232e8299d504e7898a9d6c5384664b8ee (diff)
downloadgomcmap-a44c4ad107a197a92e9ffdde38593fd7012a309e.tar.gz
gomcmap-a44c4ad107a197a92e9ffdde38593fd7012a309e.tar.bz2
gomcmap-a44c4ad107a197a92e9ffdde38593fd7012a309e.zip
Writing maps implemented
Diffstat (limited to 'mcmap/examples/emeraldfinder')
-rw-r--r--mcmap/examples/emeraldfinder/.gitignore1
-rw-r--r--mcmap/examples/emeraldfinder/main.go6
2 files changed, 4 insertions, 3 deletions
diff --git a/mcmap/examples/emeraldfinder/.gitignore b/mcmap/examples/emeraldfinder/.gitignore
new file mode 100644
index 0000000..4cc4a2d
--- /dev/null
+++ b/mcmap/examples/emeraldfinder/.gitignore
@@ -0,0 +1 @@
+emeraldfinder
diff --git a/mcmap/examples/emeraldfinder/main.go b/mcmap/examples/emeraldfinder/main.go
index c437d41..56a1a26 100644
--- a/mcmap/examples/emeraldfinder/main.go
+++ b/mcmap/examples/emeraldfinder/main.go
@@ -16,9 +16,9 @@ func main() {
os.Exit(1)
}
- region, err := mcmap.OpenRegion(*path)
+ region, err := mcmap.OpenRegion(*path, true)
if err != nil {
- fmt.Fprintf(os.Stderr, "Could not open region: %s", err)
+ fmt.Fprintf(os.Stderr, "Could not open region: %s\n", err)
os.Exit(1)
}
@@ -31,7 +31,7 @@ chunkLoop:
case mcmap.NotAvailable:
continue chunkLoop
default:
- fmt.Fprintf(os.Stderr, "Error while getting chunk (%d, %d): %s", cx, cz, err)
+ fmt.Fprintf(os.Stderr, "Error while getting chunk (%d, %d): %s\n", cx, cz, err)
os.Exit(1)
}