mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Removed server.tick event
This commit is contained in:
parent
911577e9b8
commit
5def864aca
5 changed files with 13 additions and 5 deletions
|
|
@ -337,6 +337,7 @@ class Entity extends Position{
|
|||
if($this->closed === true){
|
||||
return false;
|
||||
}
|
||||
|
||||
$hasUpdate = false;
|
||||
$now = microtime(true);
|
||||
if($this->check === false){
|
||||
|
|
@ -415,7 +416,7 @@ class Entity extends Position{
|
|||
}
|
||||
$this->server->api->handle("entity.motion", $this);
|
||||
$this->close();
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -493,6 +494,8 @@ class Entity extends Position{
|
|||
}
|
||||
$this->lastUpdate = $now;
|
||||
if($this->class !== ENTITY_PLAYER and $hasUpdate === true){
|
||||
console($this->eid);
|
||||
var_dump($this->speedX, $this->speedY, $this->speedZ);
|
||||
$this->server->schedule(5, array($this, "update"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue