mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
Update Entity.php
Now fire work
This commit is contained in:
parent
a4f4aaee4a
commit
3ad75fc9b6
1 changed files with 4 additions and 1 deletions
|
|
@ -369,7 +369,10 @@ class Entity extends Position{
|
||||||
break;
|
break;
|
||||||
case FIRE: //Fire block damage
|
case FIRE: //Fire block damage
|
||||||
if($this->inBlock(new Vector3($x, $y, $z))){
|
if($this->inBlock(new Vector3($x, $y, $z))){
|
||||||
//patched
|
$this->harm(1, "fire");
|
||||||
|
$this->fire = 150;
|
||||||
|
$this->updateMetadata();
|
||||||
|
$hasUpdate = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CACTUS: //Cactus damage
|
case CACTUS: //Cactus damage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue