Remove fire effects on Creative mode

This commit is contained in:
Shoghi Cervantes 2013-11-27 17:24:33 +01:00
parent b21ee37c07
commit bc48e70d6c

View File

@ -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);