Permalink
Browse files

MCServerChunkGenerator: Support Forge Mod Loader.

Fixes #122. Credit goes to @cjkreklow
  • Loading branch information...
1 parent 03566f9 commit 294c8ec1423eadf6d1d803859942e46ce13b430b @codewarrior0 codewarrior0 committed Nov 13, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 minecraft_server.py
View
@@ -345,7 +345,15 @@ def generateAtPositionIter(self, tempWorld, tempDir, cx, cz, simulate=False):
log.info(line)
yield line
- if "[INFO] Done" in line:
+# Forge and FML change stderr output, causing MCServerChunkGenerator to wait endlessly.
+#
+# Vanilla:
+# 2012-11-13 11:29:19 [INFO] Done (9.962s)!
+#
+# Forge/FML:
+# 2012-11-13 11:47:13 [INFO] [Minecraft] Done (8.020s)!
+
+ if "[INFO]" in line and "Done" in line:
if simulate:
duration = time.time() - startTime

0 comments on commit 294c8ec

Please sign in to comment.