diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index fd80f55c1..dbb1007c6 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -144,6 +144,12 @@ namespace pocketmine { exit(1); } + if(version_compare(RakLib::VERSION, "0.8.1") < 0){ + echo "[CRITICAL] RakLib version 0.8.1 is required, while you have version " . RakLib::VERSION . "." . PHP_EOL; + echo "[CRITICAL] Please update your submodules or use provided builds." . PHP_EOL; + exit(1); + } + set_time_limit(0); //Who set it to 30 seconds?!?! ini_set("allow_url_fopen", '1'); diff --git a/src/pocketmine/utils/UUID.php b/src/pocketmine/utils/UUID.php index 56c8767db..d95d60bcb 100644 --- a/src/pocketmine/utils/UUID.php +++ b/src/pocketmine/utils/UUID.php @@ -94,9 +94,6 @@ class UUID{ $hex = bin2hex($this->toBinary()); //xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx 8-4-4-4-12 - if($this->version !== null){ - return substr($hex, 0, 8) . "-" . substr($hex, 8, 4) . "-" . hexdec($this->version) . substr($hex, 13, 3) . "-8" . substr($hex, 17, 3) . "-" . substr($hex, 20, 12); - } return substr($hex, 0, 8) . "-" . substr($hex, 8, 4) . "-" . substr($hex, 12, 4) . "-" . substr($hex, 16, 4) . "-" . substr($hex, 20, 12); } diff --git a/src/raklib b/src/raklib index 3b1ca9c1b..1fee79e4a 160000 --- a/src/raklib +++ b/src/raklib @@ -1 +1 @@ -Subproject commit 3b1ca9c1bedf1a18ef40757665bf8c9e7e769c9c +Subproject commit 1fee79e4aac0f958ab720606e223b0aa690f5c47