aldigobbler commited on
Commit
378852a
·
verified ·
1 Parent(s): b63e107

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -313,9 +313,8 @@ def setup_minecraft_server():
313
  print(f"Server JAR already exists at {JAR_PATH}")
314
 
315
  server_properties_path = DATA_DIR / "server.properties"
316
- if not server_properties_path.exists():
317
- print("Creating server.properties...")
318
- server_properties = """# Minecraft server properties
319
  server-port=25565
320
  gamemode=survival
321
  difficulty=easy
@@ -327,8 +326,8 @@ motd=Hugging Face Spaces Minecraft Server
327
  enable-query=true
328
  query.port=25565
329
  """
330
- with open(server_properties_path, 'w') as f:
331
- f.write(server_properties)
332
 
333
  # Create eula.txt (required for server to start)
334
  eula_path = DATA_DIR / "eula.txt"
 
313
  print(f"Server JAR already exists at {JAR_PATH}")
314
 
315
  server_properties_path = DATA_DIR / "server.properties"
316
+ print("Creating server.properties...")
317
+ server_properties = """# Minecraft server properties
 
318
  server-port=25565
319
  gamemode=survival
320
  difficulty=easy
 
326
  enable-query=true
327
  query.port=25565
328
  """
329
+ with open(server_properties_path, 'w') as f:
330
+ f.write(server_properties)
331
 
332
  # Create eula.txt (required for server to start)
333
  eula_path = DATA_DIR / "eula.txt"