mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
added force-20-tps as extra property
This commit is contained in:
parent
657beafb2a
commit
f3228ece20
2 changed files with 40 additions and 27 deletions
|
|
@ -638,12 +638,9 @@ class Entity extends Position
|
|||
|
||||
if($update === true){
|
||||
$hasUpdate = true;
|
||||
if(($this->server->ticks % 4 === 0 && $this->class === ENTITY_ITEM) || $this->class != ENTITY_ITEM){ //update item speed every 4 ticks
|
||||
//$this->server->api->handle("entity.motion", $this);
|
||||
$this->lastSpeedZ = $this->speedZ;
|
||||
$this->lastSpeedY = $this->speedY;
|
||||
$this->lastSpeedX = $this->speedX;
|
||||
}
|
||||
$this->lastSpeedZ = $this->speedZ;
|
||||
$this->lastSpeedY = $this->speedY;
|
||||
$this->lastSpeedX = $this->speedX;
|
||||
}
|
||||
$this->updateFallState($this->speedY);
|
||||
} elseif($this->player instanceof Player){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue