Added entity dead check for damage

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-27 23:08:30 +01:00
parent c06ffe3003
commit 26fb652c5a

View File

@ -165,6 +165,10 @@ class Entity extends stdClass{
}
}
if($this->dead === true){
return;
}
$startX = (int) (round($this->x - 0.5) - 1);
$startY = (int) (round($this->y) - 1);
$startZ = (int) (round($this->z - 0.5) - 1);