mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-21 18:36:40 +00:00
Entity spawning FIX
This commit is contained in:
parent
68a685a984
commit
c2db634fcf
@ -335,17 +335,15 @@ class Session{
|
|||||||
));
|
));
|
||||||
foreach($this->server->entities as $entity){
|
foreach($this->server->entities as $entity){
|
||||||
if($entity->eid !== $this->eid){
|
if($entity->eid !== $this->eid){
|
||||||
if($entity->class === 0){
|
if($entity->class === ENTITY_PLAYER){
|
||||||
$this->server->trigger("onPlayerAdd", array(
|
$this->eventHandler(array(
|
||||||
"clientID" => $entity->data["clientID"],
|
"clientID" => $entity->data["clientID"],
|
||||||
"username" => $entity->name,
|
"username" => $entity->name,
|
||||||
"eid" => $entity->eid,
|
"eid" => $entity->eid,
|
||||||
"x" => $entity->position["x"],
|
"x" => $entity->position["x"],
|
||||||
"y" => $entity->position["y"],
|
"y" => $entity->position["y"],
|
||||||
"z" => $entity->position["z"],
|
"z" => $entity->position["z"],
|
||||||
"yaw" => $entity->position["yaw"],
|
), "onPlayerAdd");
|
||||||
"pitch" => $entity->position["pitch"],
|
|
||||||
));
|
|
||||||
}else{
|
}else{
|
||||||
$this->send(0x84, array(
|
$this->send(0x84, array(
|
||||||
$this->counter[0],
|
$this->counter[0],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user