Update Entity.php

Now fire work
This commit is contained in:
ArkQuark 2021-12-24 15:32:47 +03:00
parent a4f4aaee4a
commit 3ad75fc9b6

View file

@ -369,7 +369,10 @@ class Entity extends Position{
break;
case FIRE: //Fire block damage
if($this->inBlock(new Vector3($x, $y, $z))){
//patched
$this->harm(1, "fire");
$this->fire = 150;
$this->updateMetadata();
$hasUpdate = true;
}
break;
case CACTUS: //Cactus damage