mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
RakLibServer: make all parameters mandatory
This commit is contained in:
parent
2ce6a87d05
commit
1003fde2fc
@ -72,18 +72,15 @@ class RakLibServer extends Thread{
|
|||||||
/** @var string|null */
|
/** @var string|null */
|
||||||
public $crashInfo = null;
|
public $crashInfo = null;
|
||||||
|
|
||||||
/**
|
|
||||||
* @param int|null $overrideProtocolVersion Optional custom protocol version to use, defaults to current RakLib's protocol
|
|
||||||
*/
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
\ThreadedLogger $logger,
|
\ThreadedLogger $logger,
|
||||||
\Threaded $mainToThreadBuffer,
|
\Threaded $mainToThreadBuffer,
|
||||||
\Threaded $threadToMainBuffer,
|
\Threaded $threadToMainBuffer,
|
||||||
InternetAddress $address,
|
InternetAddress $address,
|
||||||
int $serverId,
|
int $serverId,
|
||||||
int $maxMtuSize = 1492,
|
int $maxMtuSize,
|
||||||
?int $overrideProtocolVersion = null,
|
int $overrideProtocolVersion,
|
||||||
?SleeperNotifier $sleeper = null
|
SleeperNotifier $sleeper
|
||||||
){
|
){
|
||||||
$this->address = $address;
|
$this->address = $address;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user