mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
Remove fire effects on Creative mode
This commit is contained in:
parent
b21ee37c07
commit
bc48e70d6c
@ -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…
x
Reference in New Issue
Block a user