mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Fixed player being kicked on death
This commit is contained in:
@@ -377,7 +377,7 @@ abstract class Entity extends Position implements Metadatable{
|
|||||||
|
|
||||||
public function entityBaseTick(){
|
public function entityBaseTick(){
|
||||||
//TODO: check vehicles
|
//TODO: check vehicles
|
||||||
if($this->dead === true){
|
if($this->dead === true and !($this instanceof Player)){
|
||||||
$this->close();
|
$this->close();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user