Merge branch 'stable'

This commit is contained in:
Dylan K. Taylor
2020-01-11 22:36:57 +00:00
12 changed files with 137 additions and 4 deletions

View File

@@ -25,7 +25,14 @@ namespace pocketmine\utils;
class ReversePriorityQueue extends \SplPriorityQueue{
/**
* @param mixed $priority1
* @param mixed $priority2
*
* @return int
*/
public function compare($priority1, $priority2){
//TODO: this will crash if non-numeric priorities are used
return (int) -($priority1 - $priority2);
}
}