Updated RakLib dependency

This commit is contained in:
Dylan K. Taylor 2018-01-16 20:01:41 +00:00
parent f1b0a4f1de
commit 7a5e5773b7
3 changed files with 13 additions and 11 deletions

View File

@ -21,7 +21,7 @@
"ext-yaml": ">=2.0.0", "ext-yaml": ">=2.0.0",
"ext-zip": "*", "ext-zip": "*",
"ext-zlib": ">=1.2.11", "ext-zlib": ">=1.2.11",
"pocketmine/raklib": "^0.10.0", "pocketmine/raklib": "dev-master#998af685be51d6ee8a1e206066ccd96c21450bfd",
"pocketmine/pocketmine-spl": "^0.2.0", "pocketmine/pocketmine-spl": "^0.2.0",
"pocketmine/pocketmine-binaryutils": "dev-master#a7cd5303a3b215d26bf9be76682ce9311f40e887", "pocketmine/pocketmine-binaryutils": "dev-master#a7cd5303a3b215d26bf9be76682ce9311f40e887",
"pocketmine/pocketmine-nbt": "dev-master#f8934c0aed90d1f55452588f7ebef7c4519518a5" "pocketmine/pocketmine-nbt": "dev-master#f8934c0aed90d1f55452588f7ebef7c4519518a5"

16
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "1c1cb8b3b3cd2e20af5acb65235bb586", "content-hash": "f13679b4c6a569a758646a63936dbd18",
"packages": [ "packages": [
{ {
"name": "pocketmine/pocketmine-binaryutils", "name": "pocketmine/pocketmine-binaryutils",
@ -107,16 +107,16 @@
}, },
{ {
"name": "pocketmine/raklib", "name": "pocketmine/raklib",
"version": "0.10.0", "version": "dev-master",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/pmmp/RakLib.git", "url": "https://github.com/pmmp/RakLib.git",
"reference": "112e11fb68efcd97dab8b1ace16e818b3163cba0" "reference": "998af685be51d6ee8a1e206066ccd96c21450bfd"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/pmmp/RakLib/zipball/112e11fb68efcd97dab8b1ace16e818b3163cba0", "url": "https://api.github.com/repos/pmmp/RakLib/zipball/998af685be51d6ee8a1e206066ccd96c21450bfd",
"reference": "112e11fb68efcd97dab8b1ace16e818b3163cba0", "reference": "998af685be51d6ee8a1e206066ccd96c21450bfd",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -124,6 +124,7 @@
"ext-pthreads": ">=3.1.7dev", "ext-pthreads": ">=3.1.7dev",
"ext-sockets": "*", "ext-sockets": "*",
"php": ">=7.2.0RC3", "php": ">=7.2.0RC3",
"pocketmine/pocketmine-binaryutils": "dev-master#a7cd5303a3b215d26bf9be76682ce9311f40e887",
"pocketmine/pocketmine-spl": "^0.2.0" "pocketmine/pocketmine-spl": "^0.2.0"
}, },
"type": "library", "type": "library",
@ -137,10 +138,10 @@
], ],
"description": "A RakNet server implementation written in PHP", "description": "A RakNet server implementation written in PHP",
"support": { "support": {
"source": "https://github.com/pmmp/RakLib/tree/0.10.0", "source": "https://github.com/pmmp/RakLib/tree/master",
"issues": "https://github.com/pmmp/RakLib/issues" "issues": "https://github.com/pmmp/RakLib/issues"
}, },
"time": "2018-01-11T13:13:42+00:00" "time": "2018-01-16T19:33:21+00:00"
} }
], ],
"packages-dev": [], "packages-dev": [],
@ -149,6 +150,7 @@
"stability-flags": { "stability-flags": {
"php": 5, "php": 5,
"ext-pthreads": 20, "ext-pthreads": 20,
"pocketmine/raklib": 20,
"pocketmine/pocketmine-binaryutils": 20, "pocketmine/pocketmine-binaryutils": 20,
"pocketmine/pocketmine-nbt": 20 "pocketmine/pocketmine-nbt": 20
}, },

View File

@ -26,10 +26,10 @@ namespace pocketmine\network\mcpe;
use raklib\protocol\EncapsulatedPacket; use raklib\protocol\EncapsulatedPacket;
class CachedEncapsulatedPacket extends EncapsulatedPacket{ class CachedEncapsulatedPacket extends EncapsulatedPacket{
/** @var string|null */
private $internalData = null; private $internalData = null;
public function toBinary($internal = false){ public function toInternalBinary() : string{
return $this->internalData ?? ($this->internalData = parent::toBinary($internal)); return $this->internalData ?? ($this->internalData = parent::toInternalBinary());
} }
} }