mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +00:00
Fixed player being kicked on death
This commit is contained in:
parent
214de28808
commit
40bf7fd22a
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user