using native MTRandom if php8.2+ is detected

This commit is contained in:
GameHerobrine 2023-12-01 06:24:53 +03:00
parent 648784b4ff
commit 70e4355d61
5 changed files with 81 additions and 55 deletions

View file

@ -52,7 +52,7 @@ define("MAJOR_VERSION", "2.0.0dev");
define("CODENAME", "Breadfence"); //i'm not very creative - kotyaralih
define("CURRENT_MINECRAFT_VERSION", "v0.9.5 alpha");
define("CURRENT_API_VERSION", '13.1');
define("CURRENT_PHP_VERSION", "5.5");
define("CURRENT_PHP_VERSION", "8.0");
$gitsha1 = false;
if(file_exists(FILE_PATH . ".git/refs/heads/master")){ //Found Git information!
define("GIT_COMMIT", strtolower(trim(file_get_contents(FILE_PATH . ".git/refs/heads/master"))));