mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Fix build
This commit is contained in:
parent
c1ba735c9e
commit
9796dfd4d9
@ -583,7 +583,9 @@ class NetworkSession{
|
|||||||
|
|
||||||
public function disconnectIncompatibleProtocol(int $protocolVersion) : void{
|
public function disconnectIncompatibleProtocol(int $protocolVersion) : void{
|
||||||
$this->tryDisconnect(
|
$this->tryDisconnect(
|
||||||
fn() => $this->sendDataPacket(PlayStatusPacket::create($protocolVersion < ProtocolInfo::CURRENT_PROTOCOL ? PlayStatusPacket::LOGIN_FAILED_CLIENT : PlayStatusPacket::LOGIN_FAILED_SERVER), true),
|
function() use ($protocolVersion) : void{
|
||||||
|
$this->sendDataPacket(PlayStatusPacket::create($protocolVersion < ProtocolInfo::CURRENT_PROTOCOL ? PlayStatusPacket::LOGIN_FAILED_CLIENT : PlayStatusPacket::LOGIN_FAILED_SERVER), true);
|
||||||
|
},
|
||||||
$this->server->getLanguage()->translate(KnownTranslationFactory::pocketmine_disconnect_incompatibleProtocol((string) $protocolVersion))
|
$this->server->getLanguage()->translate(KnownTranslationFactory::pocketmine_disconnect_incompatibleProtocol((string) $protocolVersion))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user