Morlok8k / MinecraftLandGenerator

Pregenerate Land in a SMP Minecraft Server
http://www.minecraftforum.net/topic/187737-minecraft-land-generator/
Do What The F*ck You Want To Public License
97 stars 20 forks source link

1.7.8: Server restart when incomplete and postShutdownDelay #17

Open VADemon opened 5 years ago

VADemon commented 5 years ago

- Restart server when gen didn't complete: During generation with big view-distances in Alpha versions it occured that the server would spontaneously shutdown BEFORE it completed the generation. Without this patch to generate a continuous chunk of land you'd need to restar the whole gen at least 2-5 times or make huge overlaps.

- add postShutdownDelay to wait between iterations When closing the server process, Windows did not immediately return the occupied memory such that the next JVM process didn't have enough free RAM to reserve.

The solution is to delay the next run, but I'm not sure the Thread.sleep I introduced really works as expected, looking at processes in ProcessExplorer didn't show it waited 2.5s :/ So if you can confirm working or help fix it, that'd be neat.

Old features untouched - backwards compatible.

PS: Should've made the formatting fix into another commit.