mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Added entity dead check for damage
This commit is contained in:
parent
c06ffe3003
commit
26fb652c5a
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue