mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 13:49:55 +00:00
Removed player foreach on Entity
This commit is contained in:
parent
5b3ce2da9d
commit
1ac7f9f061
@ -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