mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Get correct Phar path if not specified
This commit is contained in:
parent
0f0b866788
commit
648b23d08f
@ -87,7 +87,11 @@ namespace pocketmine {
|
||||
const MINECRAFT_VERSION = "v0.8.1 alpha";
|
||||
const PHP_VERSION = "5.5";
|
||||
|
||||
@define("pocketmine\\PATH", \getcwd() . DIRECTORY_SEPARATOR);
|
||||
if(\Phar::running(true) !== ""){
|
||||
@define("pocketmine\\PATH", \Phar::running(true)."/");
|
||||
}else{
|
||||
@define("pocketmine\\PATH", \getcwd() . DIRECTORY_SEPARATOR);
|
||||
}
|
||||
|
||||
if(!class_exists("SplClassLoader", false)){
|
||||
require_once(\pocketmine\PATH . "src/spl/SplClassLoader.php");
|
||||
|
Loading…
x
Reference in New Issue
Block a user