mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Remove fire effects on Creative mode
This commit is contained in:
parent
b21ee37c07
commit
bc48e70d6c
1 changed files with 3 additions and 0 deletions
|
|
@ -315,6 +315,9 @@ class Entity extends Position{
|
||||||
}else{
|
}else{
|
||||||
$hasUpdate = true;
|
$hasUpdate = true;
|
||||||
}
|
}
|
||||||
|
if(($this->player instanceof Player) and ($this->player->gamemode & 0x01) === CREATIVE){ //Remove fire effects in next tick
|
||||||
|
$this->fire = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$startX = (int) (round($this->x - 0.5) - 1);
|
$startX = (int) (round($this->x - 0.5) - 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue