Fixed issue where plugins schedule a Player update before log in

This commit is contained in:
Shoghi Cervantes 2015-01-06 00:25:40 +01:00
parent efe75f2836
commit 469ef84733
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -1200,6 +1200,10 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
}
public function onUpdate($currentTick){
if(!$this->loggedIn){
return false;
}
if($this->dead === true and $this->spawned){
++$this->deadTicks;
if($this->deadTicks >= 10){