mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 09:49:50 +00:00
Fixed issue where plugins schedule a Player update before log in
This commit is contained in:
parent
efe75f2836
commit
469ef84733
@ -1200,6 +1200,10 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onUpdate($currentTick){
|
public function onUpdate($currentTick){
|
||||||
|
if(!$this->loggedIn){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if($this->dead === true and $this->spawned){
|
if($this->dead === true and $this->spawned){
|
||||||
++$this->deadTicks;
|
++$this->deadTicks;
|
||||||
if($this->deadTicks >= 10){
|
if($this->deadTicks >= 10){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user