summaryrefslogtreecommitdiff
path: root/mcmap/examples/addchunk
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-09-20 21:20:06 +0200
committerKevin Chabowski <kevin@kch42.de>2013-09-20 21:20:06 +0200
commitfc3743db98c3cc9f800cd50ae087e505ff260c0c (patch)
tree7fc5e9733a0a3c1ecf7fd20df656b934c5006f0f /mcmap/examples/addchunk
parent659a7f1c7b6f1d63505887604029888324b9a21b (diff)
downloadgomcmap-fc3743db98c3cc9f800cd50ae087e505ff260c0c.tar.gz
gomcmap-fc3743db98c3cc9f800cd50ae087e505ff260c0c.tar.bz2
gomcmap-fc3743db98c3cc9f800cd50ae087e505ff260c0c.zip
Actually adding chunks worked perfectly.new-chunk
The example application was just broken, since I forgot to call MarkModified...
Diffstat (limited to 'mcmap/examples/addchunk')
-rw-r--r--mcmap/examples/addchunk/.gitignore1
-rw-r--r--mcmap/examples/addchunk/main.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/mcmap/examples/addchunk/.gitignore b/mcmap/examples/addchunk/.gitignore
new file mode 100644
index 0000000..ce96f38
--- /dev/null
+++ b/mcmap/examples/addchunk/.gitignore
@@ -0,0 +1 @@
+addchunk
diff --git a/mcmap/examples/addchunk/main.go b/mcmap/examples/addchunk/main.go
index 0ca763f..c1920fd 100644
--- a/mcmap/examples/addchunk/main.go
+++ b/mcmap/examples/addchunk/main.go
@@ -33,6 +33,7 @@ func main() {
})
chunk.RecalcHeightMap()
+ chunk.MarkModified()
if err := chunk.MarkUnused(); err != nil {
fmt.Fprintf(os.Stderr, "Could not MarkUnused(): %s\n", err)
os.Exit(1)