Fixed player being kicked on death

This commit is contained in:
Shoghi Cervantes 2014-06-16 00:01:09 +02:00
parent 214de28808
commit 40bf7fd22a

View File

@ -377,7 +377,7 @@ abstract class Entity extends Position implements Metadatable{
public function entityBaseTick(){
//TODO: check vehicles
if($this->dead === true){
if($this->dead === true and !($this instanceof Player)){
$this->close();
return false;