mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
Added more level tick options, force player ticks, base tick rate for levels
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user