Fixed PHP 5.4 issues

This commit is contained in:
Shoghi Cervantes
2014-03-12 14:03:42 +01:00
parent 18117b91ed
commit 8f990472c6
2 changed files with 1 additions and 7 deletions

View File

@ -46,7 +46,7 @@ class Server{
private function load(){
$this->version = new VersionString();
if(defined("PocketMine\\DEBUG") and \PocketMine\DEBUG >= 0){
if(defined("PocketMine\\DEBUG") and \PocketMine\DEBUG >= 0 and function_exists("cli_set_process_title")){
@cli_set_process_title("PocketMine-MP " . \PocketMine\VERSION);
}
console("[INFO] Starting Minecraft PE server on " . ($this->serverip === "0.0.0.0" ? "*" : $this->serverip) . ":" . $this->port);