Added more level tick options, force player ticks, base tick rate for levels

This commit is contained in:
Shoghi Cervantes
2015-04-23 11:34:01 +02:00
parent f73bd02198
commit a0739a7b03
4 changed files with 42 additions and 15 deletions

View File

@@ -1306,18 +1306,23 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
return false;
}
$tickDiff = $currentTick - $this->lastUpdate;
if($tickDiff <= 0){
return true;
}
if($this->dead === true and $this->spawned){
++$this->deadTicks;
if($this->deadTicks >= 10){
$this->despawnFromAll();
}
return $this->deadTicks < 10;
return true;
}
$this->timings->startTiming();
if($this->spawned){
$tickDiff = $currentTick - $this->lastUpdate;
$this->processMovement($tickDiff);