mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
Moved network ids to constants, improved some entity methods, more performance
This commit is contained in:
@ -25,8 +25,7 @@ namespace pocketmine\network\protocol;
|
||||
|
||||
|
||||
class UpdateBlockPacket extends DataPacket{
|
||||
public static $pool = [];
|
||||
public static $next = 0;
|
||||
const NETWORK_ID = Info::UPDATE_BLOCK_PACKET;
|
||||
|
||||
const FLAG_NONE = 0b0000;
|
||||
const FLAG_NEIGHBORS = 0b0001;
|
||||
@ -39,10 +38,6 @@ class UpdateBlockPacket extends DataPacket{
|
||||
|
||||
public $records = []; //x, z, y, blockId, blockData, flags
|
||||
|
||||
public function pid(){
|
||||
return Info::UPDATE_BLOCK_PACKET;
|
||||
}
|
||||
|
||||
public function decode(){
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user