entities have autojump now

This commit is contained in:
GameHerobrine 2023-01-22 18:48:22 +03:00
parent 9f5304bdad
commit 1aef739065
3 changed files with 20 additions and 4 deletions

View file

@ -160,9 +160,9 @@ class Player{
return false;
}
foreach($this->server->api->entity->getAll($this->level) as $e){
foreach($this->level->entities as $e){
if($e !== $this->entity){
if($e->player instanceof Player){
if($e->isPlayer()){
$pk = new MoveEntityPacket_PosRot;
$pk->eid = $this->entity->eid;
$pk->x = -256;