API 1.11.0, fixed phar check

This commit is contained in:
Shoghi Cervantes 2015-01-03 16:38:36 +01:00
parent 7ef8edccf4
commit 438591bd75
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ namespace pocketmine {
use pocketmine\wizard\Installer;
const VERSION = "1.4.1dev";
const API_VERSION = "1.10.0";
const API_VERSION = "1.11.0";
const CODENAME = "絶好(Zekkou)ケーキ(Cake)";
const MINECRAFT_VERSION = "v0.10.4 alpha";
@ -434,7 +434,7 @@ namespace pocketmine {
new Installer();
}
if(substr(__FILE__, 0, 7) !== "phar://"){
if(\Phar::running(true) !== ""){
$logger->warning("Non-packaged PocketMine-MP installation detected, do not use on production.");
}