protocol changes to support latest pm4 #2
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will fix
[14:25:46.497] [AsyncWorker#11 thread/CRITICAL]: TypeError: "pocketmine\network\mcpe\protocol\LevelChunkPacket::create(): Argument #1 ($chunkPosition) must be of type pocketmine\network\mcpe\protocol\types\ChunkPosition, int given, called in /home/debian/mcpe/BACKUP_NW/PM4-Test_Server/plugins/ActualAntiXRay-main/src/ColinHDev/ActualAntiXRay/tasks/ChunkRequestTask.php on line 172" (EXCEPTION) in "pmsrc/vendor/pocketmine/bedrock-protocol/src/LevelChunkPacket" at line 47 --- Stack trace --- #0 /home/debian/mcpe/BACKUP_NW/PM4-Test_Server/plugins/ActualAntiXRay-main/src/ColinHDev/ActualAntiXRay/tasks/ChunkRequestTask(172): pocketmine\network\mcpe\protocol\LevelChunkPacket::create(int -2, int -1, int 9, false, null, string[7627] ................................................................................) #1 pmsrc/src/scheduler/AsyncTask(90): ColinHDev\ActualAntiXRay\tasks\ChunkRequestTask->onRun() #2 (): pocketmine\scheduler\AsyncTask->run() --- End of exception information ---