mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +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(){
|
||||
//TODO: check vehicles
|
||||
if($this->dead === true){
|
||||
if($this->dead === true and !($this instanceof Player)){
|
||||
$this->close();
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user