From cf554c67f21b42823f1ceb8177fab43983202c9e Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 31 Jan 2014 17:24:03 +0100 Subject: [PATCH] Be sure to respawn players correctly --- src/Player.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Player.php b/src/Player.php index 909e51dc2..5d5826ff3 100644 --- a/src/Player.php +++ b/src/Player.php @@ -1840,7 +1840,7 @@ class Player{ if($this->spawned === false){ break; } - if($this->entity->dead === false){ + if(@$this->entity->dead === false){ break; } $this->craftingItems = array(); @@ -1850,7 +1850,8 @@ class Player{ $this->entity->fire = 0; $this->entity->air = 300; $this->entity->setHealth(20, "respawn"); - $this->entity->updateMetadata(); + $this->entity->updateMetadata(); + $this->entity->dead = false; }else{ break; }