mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed packets
This commit is contained in:
@ -40,7 +40,7 @@ use pocketmine\network\protocol\ContainerSetDataPacket;
|
||||
use pocketmine\network\protocol\ContainerSetSlotPacket;
|
||||
use pocketmine\network\protocol\DataPacket;
|
||||
use pocketmine\network\protocol\DropItemPacket;
|
||||
use pocketmine\network\protocol\EntityDataPacket;
|
||||
use pocketmine\network\protocol\TileEntityDataPacket;
|
||||
use pocketmine\network\protocol\EntityEventPacket;
|
||||
use pocketmine\network\protocol\ExplodePacket;
|
||||
use pocketmine\network\protocol\HurtArmorPacket;
|
||||
@ -348,7 +348,7 @@ class RakLibInterface implements ServerInstance, SourceInterface{
|
||||
$this->registerPacket(ProtocolInfo::CONTAINER_SET_CONTENT_PACKET, ContainerSetContentPacket::class);
|
||||
$this->registerPacket(ProtocolInfo::CHAT_PACKET, ChatPacket::class);
|
||||
$this->registerPacket(ProtocolInfo::ADVENTURE_SETTINGS_PACKET, AdventureSettingsPacket::class);
|
||||
$this->registerPacket(ProtocolInfo::ENTITY_DATA_PACKET, EntityDataPacket::class);
|
||||
$this->registerPacket(ProtocolInfo::TILE_ENTITY_DATA_PACKET, TileEntityDataPacket::class);
|
||||
$this->registerPacket(ProtocolInfo::SET_DIFFICULTY_PACKET, SetDifficultyPacket::class);
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ interface Info{
|
||||
//const CONTAINER_ACK_PACKET = 0xad;
|
||||
const CHAT_PACKET = 0xae;
|
||||
const ADVENTURE_SETTINGS_PACKET = 0xaf;
|
||||
const ENTITY_DATA_PACKET = 0xb0;
|
||||
const TILE_ENTITY_DATA_PACKET = 0xb0;
|
||||
//const PLAYER_INPUT_PACKET = 0xb1;
|
||||
const FULL_CHUNK_DATA_PACKET = 0xb2;
|
||||
const SET_DIFFICULTY_PACKET = 0xb3;
|
||||
|
@ -24,7 +24,7 @@ namespace pocketmine\network\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
|
||||
class EntityDataPacket extends DataPacket{
|
||||
class TileEntityDataPacket extends DataPacket{
|
||||
public static $pool = [];
|
||||
public static $next = 0;
|
||||
|
||||
@ -34,7 +34,7 @@ class EntityDataPacket extends DataPacket{
|
||||
public $namedtag;
|
||||
|
||||
public function pid(){
|
||||
return Info::ENTITY_DATA_PACKET;
|
||||
return Info::TILE_ENTITY_DATA_PACKET;
|
||||
}
|
||||
|
||||
public function decode(){
|
||||
@ -52,4 +52,4 @@ class EntityDataPacket extends DataPacket{
|
||||
$this->put($this->namedtag);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user