mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
everlasting fire fix, small bugfixes
This commit is contained in:
parent
4b17c605b4
commit
4e4c392ade
4 changed files with 14 additions and 5 deletions
|
|
@ -395,9 +395,6 @@ class Entity extends Position
|
|||
} else{
|
||||
$hasUpdate = true;
|
||||
}
|
||||
if(($this->player instanceof Player) and ($this->player->gamemode & 0x01) === CREATIVE){ // Remove fire effects in next tick
|
||||
$this->fire = 1;
|
||||
}
|
||||
}
|
||||
|
||||
$startX = floor($this->boundingBox->minX);
|
||||
|
|
@ -470,6 +467,9 @@ class Entity extends Position
|
|||
if ($this->inBlock(new Vector3($x, $y, $z))) {
|
||||
$this->harm(5, "lava");
|
||||
$this->fire = 300;
|
||||
if($this->isPlayer() and ($this->player->gamemode & 0x01) === CREATIVE){
|
||||
$this->fire = 1;
|
||||
}
|
||||
$this->updateMetadata();
|
||||
$hasUpdate = true;
|
||||
}
|
||||
|
|
@ -478,6 +478,9 @@ class Entity extends Position
|
|||
if ($this->inBlock(new Vector3($x, $y, $z))) {
|
||||
$this->harm(1, "fire");
|
||||
$this->fire = 300;
|
||||
if($this->isPlayer() and ($this->player->gamemode & 0x01) === CREATIVE){
|
||||
$this->fire = 1;
|
||||
}
|
||||
$this->updateMetadata();
|
||||
$hasUpdate = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue