PocketMine.php: refuse pthreads 5.0

This commit is contained in:
Dylan K. Taylor 2023-01-21 15:30:36 +00:00
parent d5b7bf77b0
commit f948cb0086
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -122,7 +122,7 @@ namespace pocketmine {
if(substr_count($pthreads_version, ".") < 2){ if(substr_count($pthreads_version, ".") < 2){
$pthreads_version = "0.$pthreads_version"; $pthreads_version = "0.$pthreads_version";
} }
if(version_compare($pthreads_version, "4.0.0") < 0 || version_compare($pthreads_version, "5.0.0") > 0){ if(version_compare($pthreads_version, "4.0.0") < 0 || version_compare($pthreads_version, "5.0.0") >= 0){
$messages[] = "pthreads ^4.0.0 is required, while you have $pthreads_version."; $messages[] = "pthreads ^4.0.0 is required, while you have $pthreads_version.";
} }
} }