public function directDataPacket(DataPacket $packet, $needACK = false)
{
if ($packet instanceof PlayerListPacket) {
$pk = new FastPlayerListPacket();
$pk->sendTo = $this->uuid;
$pk->type = $packet->type;
foreach ($packet->entries as $entry) {
if ($packet->type !== PlayerListPacket::TYPE_REMOVE) {
array_pop($entry);
array_pop($entry);
}
$pk->entries[] = $entry;
}
Synapse::getInstance()->sendDataPacket($pk);
return;
}
$this->interface->putPacket($this, $packet, $needACK, true);
}