mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Added entity dead check for damage
This commit is contained in:
@@ -165,6 +165,10 @@ class Entity extends stdClass{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->dead === true){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$startX = (int) (round($this->x - 0.5) - 1);
|
$startX = (int) (round($this->x - 0.5) - 1);
|
||||||
$startY = (int) (round($this->y) - 1);
|
$startY = (int) (round($this->y) - 1);
|
||||||
$startZ = (int) (round($this->z - 0.5) - 1);
|
$startZ = (int) (round($this->z - 0.5) - 1);
|
||||||
|
Reference in New Issue
Block a user