Player: remove dead condition

this can't be reached because the only place it's called is from Level->actuallyDoTick(), where it won't appear until long after the player is logged in.
This commit is contained in:
Dylan K. Taylor 2019-03-14 14:47:20 +00:00
parent a1ffaffa7f
commit 41d13b6f06

View File

@ -1604,10 +1604,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
}
public function onUpdate(int $currentTick) : bool{
if(!$this->loggedIn){
return false;
}
$tickDiff = $currentTick - $this->lastUpdate;
if($tickDiff <= 0){