mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
Protocol 25
This commit is contained in:
parent
71587db2be
commit
1b13a4c1ec
@ -75,6 +75,7 @@ namespace pocketmine {
|
|||||||
const API_VERSION = "1.12.0";
|
const API_VERSION = "1.12.0";
|
||||||
const CODENAME = "活発(Kappatsu)フグ(Fugu)";
|
const CODENAME = "活発(Kappatsu)フグ(Fugu)";
|
||||||
const MINECRAFT_VERSION = "v0.11.0 alpha build 8";
|
const MINECRAFT_VERSION = "v0.11.0 alpha build 8";
|
||||||
|
const MINECRAFT_VERSION_NETWORK = "0.11.0.8";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Startup code. Do not look at it, it may harm you.
|
* Startup code. Do not look at it, it may harm you.
|
||||||
|
@ -84,7 +84,7 @@ class ChunkRequestTask extends AsyncTask{
|
|||||||
|
|
||||||
$biomeColors = pack("N*", ...$chunk->getBiomeColorArray());
|
$biomeColors = pack("N*", ...$chunk->getBiomeColorArray());
|
||||||
|
|
||||||
$ordered = $orderedIds . $orderedData . $orderedSkyLight . $orderedLight . $chunk->getBiomeIdArray() . $biomeColors . $this->tiles;
|
$ordered = $orderedIds . $orderedData . $orderedSkyLight . $orderedLight . $biomeColors . $this->tiles;
|
||||||
|
|
||||||
$this->setResult($ordered, false);
|
$this->setResult($ordered, false);
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,6 @@ class LevelDB extends BaseLevelProvider{
|
|||||||
$chunk->getBlockDataArray() .
|
$chunk->getBlockDataArray() .
|
||||||
$chunk->getBlockSkyLightArray() .
|
$chunk->getBlockSkyLightArray() .
|
||||||
$chunk->getBlockLightArray() .
|
$chunk->getBlockLightArray() .
|
||||||
$chunk->getBiomeIdArray() .
|
|
||||||
$biomeColors .
|
$biomeColors .
|
||||||
$tiles;
|
$tiles;
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ use pocketmine\nbt\tag\Compound;
|
|||||||
use pocketmine\nbt\tag\Int;
|
use pocketmine\nbt\tag\Int;
|
||||||
use pocketmine\nbt\tag\Long;
|
use pocketmine\nbt\tag\Long;
|
||||||
use pocketmine\nbt\tag\String;
|
use pocketmine\nbt\tag\String;
|
||||||
|
use pocketmine\network\protocol\FullChunkDataPacket;
|
||||||
use pocketmine\tile\Spawnable;
|
use pocketmine\tile\Spawnable;
|
||||||
use pocketmine\utils\Binary;
|
use pocketmine\utils\Binary;
|
||||||
use pocketmine\utils\ChunkException;
|
use pocketmine\utils\ChunkException;
|
||||||
@ -133,7 +134,6 @@ class McRegion extends BaseLevelProvider{
|
|||||||
$chunk->getBlockDataArray() .
|
$chunk->getBlockDataArray() .
|
||||||
$chunk->getBlockSkyLightArray() .
|
$chunk->getBlockSkyLightArray() .
|
||||||
$chunk->getBlockLightArray() .
|
$chunk->getBlockLightArray() .
|
||||||
$chunk->getBiomeIdArray() .
|
|
||||||
$biomeColors .
|
$biomeColors .
|
||||||
$tiles;
|
$tiles;
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ namespace pocketmine\network;
|
|||||||
use pocketmine\event\player\PlayerCreationEvent;
|
use pocketmine\event\player\PlayerCreationEvent;
|
||||||
use pocketmine\network\protocol\DataPacket;
|
use pocketmine\network\protocol\DataPacket;
|
||||||
use pocketmine\network\protocol\Info as ProtocolInfo;
|
use pocketmine\network\protocol\Info as ProtocolInfo;
|
||||||
|
use pocketmine\network\protocol\Info;
|
||||||
use pocketmine\network\protocol\UnknownPacket;
|
use pocketmine\network\protocol\UnknownPacket;
|
||||||
use pocketmine\Player;
|
use pocketmine\Player;
|
||||||
use pocketmine\Server;
|
use pocketmine\Server;
|
||||||
@ -179,7 +180,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function setName($name){
|
public function setName($name){
|
||||||
$this->interface->sendOption("name", "MCCPP;Demo;$name");
|
$this->interface->sendOption("name", "MCPE;".addcslashes($name, ";").";".Info::CURRENT_PROTOCOL.";".\pocketmine\MINECRAFT_VERSION_NETWORK);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setPortCheck($name){
|
public function setPortCheck($name){
|
||||||
|
@ -30,7 +30,7 @@ interface Info{
|
|||||||
/**
|
/**
|
||||||
* Actual Minecraft: PE protocol version
|
* Actual Minecraft: PE protocol version
|
||||||
*/
|
*/
|
||||||
const CURRENT_PROTOCOL = 24;
|
const CURRENT_PROTOCOL = 25;
|
||||||
|
|
||||||
const LOGIN_PACKET = 0x82;
|
const LOGIN_PACKET = 0x82;
|
||||||
const PLAY_STATUS_PACKET = 0x83;
|
const PLAY_STATUS_PACKET = 0x83;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user