mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Merge branch 'stable'
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user