From d515e44de9bcf21ce2a64350cd0d34a2f941c796 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 18 Dec 2012 00:58:44 +0100 Subject: [PATCH] Updated async I/O bat file --- TODO | 2 +- start.bat | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/TODO b/TODO index c0124e893..b6690a1f5 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,5 @@ - Save placed blocks and relay them to other players. -- Fix spawn position resetting to 0,128,0 +- Fix spawn position resetting - Mob spawning, item pick up - Fix metadata orientation - Proper session checks diff --git a/start.bat b/start.bat index 4ba5db155..e5b19f1b4 100644 --- a/start.bat +++ b/start.bat @@ -17,13 +17,12 @@ echo \ ^| / echo \ ^| / echo. echo. +cd /d %~dp0 FOR /F "tokens=*" %%i in ('php -r "echo 1;"') do SET PHPOUTPUT=%%i if not "%PHPOUTPUT%"=="1" ( -echo [ERROR] Couldn't find PHP in PATH. -pause -exit -) +echo [ERROR] Couldn't find PHP binary in PATH. +ping 127.0.0.1 -n 3 -w 1000>nul +) else ( START /B CMD /C CALL php server.php START /B /WAIT php input.php 1 -pause -exit \ No newline at end of file +) \ No newline at end of file