This commit is contained in:
Dylan K. Taylor 2024-03-04 14:25:47 +00:00
parent 5ad63f27bb
commit 781e3643dd
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
3 changed files with 11 additions and 21 deletions

View File

@ -45,7 +45,7 @@
"pocketmine/log": "^0.4.0", "pocketmine/log": "^0.4.0",
"pocketmine/math": "~1.0.0", "pocketmine/math": "~1.0.0",
"pocketmine/nbt": "~1.0.0", "pocketmine/nbt": "~1.0.0",
"pocketmine/raklib": "dev-client-reliable-buffer as 1.0.0", "pocketmine/raklib": "~1.1.0",
"pocketmine/raklib-ipc": "~1.0.0", "pocketmine/raklib-ipc": "~1.0.0",
"pocketmine/snooze": "^0.5.0", "pocketmine/snooze": "^0.5.0",
"ramsey/uuid": "~4.7.0", "ramsey/uuid": "~4.7.0",

27
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "4e1a278e68755522f194fba9b29cd3e2", "content-hash": "22ebdaff13a226edba97ff5405eac16c",
"packages": [ "packages": [
{ {
"name": "adhocore/json-comment", "name": "adhocore/json-comment",
@ -616,16 +616,16 @@
}, },
{ {
"name": "pocketmine/raklib", "name": "pocketmine/raklib",
"version": "dev-client-reliable-buffer", "version": "1.1.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/pmmp/RakLib.git", "url": "https://github.com/pmmp/RakLib.git",
"reference": "b1a31e87f0aadeb5894939ded01f60f1259657c5" "reference": "be2783be516bf6e2872ff5c81fb9048596617b97"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/pmmp/RakLib/zipball/b1a31e87f0aadeb5894939ded01f60f1259657c5", "url": "https://api.github.com/repos/pmmp/RakLib/zipball/be2783be516bf6e2872ff5c81fb9048596617b97",
"reference": "b1a31e87f0aadeb5894939ded01f60f1259657c5", "reference": "be2783be516bf6e2872ff5c81fb9048596617b97",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -653,9 +653,9 @@
"description": "A RakNet server implementation written in PHP", "description": "A RakNet server implementation written in PHP",
"support": { "support": {
"issues": "https://github.com/pmmp/RakLib/issues", "issues": "https://github.com/pmmp/RakLib/issues",
"source": "https://github.com/pmmp/RakLib/tree/client-reliable-buffer" "source": "https://github.com/pmmp/RakLib/tree/1.1.1"
}, },
"time": "2024-03-02T01:02:00+00:00" "time": "2024-03-04T14:02:14+00:00"
}, },
{ {
"name": "pocketmine/raklib-ipc", "name": "pocketmine/raklib-ipc",
@ -2928,18 +2928,9 @@
"time": "2023-11-20T00:12:19+00:00" "time": "2023-11-20T00:12:19+00:00"
} }
], ],
"aliases": [ "aliases": [],
{
"package": "pocketmine/raklib",
"version": "dev-client-reliable-buffer",
"alias": "1.0.0",
"alias_normalized": "1.0.0.0"
}
],
"minimum-stability": "stable", "minimum-stability": "stable",
"stability-flags": { "stability-flags": [],
"pocketmine/raklib": 20
},
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {

View File

@ -212,7 +212,7 @@ class ResourcePacksPacketHandler extends PacketHandler{
$this->session $this->session
->sendDataPacketWithReceipt(ResourcePackChunkDataPacket::create($packId, $chunkIndex, $offset, $chunkData)) ->sendDataPacketWithReceipt(ResourcePackChunkDataPacket::create($packId, $chunkIndex, $offset, $chunkData))
->onCompletion( ->onCompletion(
function() use ($packId, $chunkIndex) : void{ function() : void{
$this->activeRequests--; $this->activeRequests--;
$this->processChunkRequestQueue(); $this->processChunkRequestQueue();
}, },
@ -221,6 +221,5 @@ class ResourcePacksPacketHandler extends PacketHandler{
$this->disconnectWithError("Plugin interrupted sending of resource packs"); $this->disconnectWithError("Plugin interrupted sending of resource packs");
} }
); );
$this->session->getLogger()->debug("Sent resource pack $packId chunk $chunkIndex");
} }
} }