mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Removed player foreach on Entity
This commit is contained in:
parent
3af784012c
commit
7f9aad6840
@ -329,11 +329,7 @@ abstract class Entity extends Location implements Metadatable{
|
||||
$pk = new SetEntityDataPacket();
|
||||
$pk->eid = $this->id;
|
||||
$pk->metadata = $this->getData();
|
||||
$pk->encode();
|
||||
$pk->isEncoded = true;
|
||||
foreach($player as $p){
|
||||
$p->dataPacket($pk);
|
||||
}
|
||||
Server::broadcastPacket($player, $pk);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user