mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +00:00
Added entity dead check for damage
This commit is contained in:
parent
c06ffe3003
commit
26fb652c5a
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user