mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +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 = new SetEntityDataPacket();
|
||||||
$pk->eid = $this->id;
|
$pk->eid = $this->id;
|
||||||
$pk->metadata = $this->getData();
|
$pk->metadata = $this->getData();
|
||||||
$pk->encode();
|
Server::broadcastPacket($player, $pk);
|
||||||
$pk->isEncoded = true;
|
|
||||||
foreach($player as $p){
|
|
||||||
$p->dataPacket($pk);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user