From fc3743db98c3cc9f800cd50ae087e505ff260c0c Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Fri, 20 Sep 2013 21:20:06 +0200 Subject: Actually adding chunks worked perfectly. The example application was just broken, since I forgot to call MarkModified... --- mcmap/examples/addchunk/.gitignore | 1 + mcmap/examples/addchunk/main.go | 1 + 2 files changed, 2 insertions(+) create mode 100644 mcmap/examples/addchunk/.gitignore (limited to 'mcmap') 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) -- cgit v1.2.3-54-g00ecf