Wickth/TerrainControl — pull request #41 by raegenhere (2012-04-19 18:04:43+00:00)
Title: Offset support for mapwriter

Hi :-)

Basically I wrote this for my own needs... I want to export a big map (more than 1000 chunks), then change it and reimport it with the new FromImage generation.
But my server runs out of memory on exporting more than 300 chunks, so I made this workaround with offsets, so I can export lots of smaller maps and put them together in an image editor.

I also changed the standard behaviour, if the command is executed form the game it will center the exported map at the players current position, unless coordinates are specified.
From console it is still centered at 0 / 0 by default.
Also, the exported map now faces north by default (rotated 270°)

I'm new to java, so sorry if I made mistakes. But I did my best and in tests everything worked as it should.

regards,
Raegenhere