mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Improved network packets allocation
This commit is contained in:
@ -36,7 +36,7 @@ abstract class Spawnable extends Tile{
|
||||
|
||||
$nbt = new NBT(NBT::LITTLE_ENDIAN);
|
||||
$nbt->setData($this->getSpawnCompound());
|
||||
$pk = new EntityDataPacket;
|
||||
$pk = EntityDataPacket::getFromPool();
|
||||
$pk->x = $this->x;
|
||||
$pk->y = $this->y;
|
||||
$pk->z = $this->z;
|
||||
|
Reference in New Issue
Block a user