mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
entities have autojump now
This commit is contained in:
parent
9f5304bdad
commit
1aef739065
3 changed files with 20 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue