Fix player burn time in creative

This commit is contained in:
Dylan K. Taylor
2017-01-06 20:00:19 +00:00
parent aaf549a469
commit 86dc8c48b9
2 changed files with 13 additions and 5 deletions

View File

@ -1235,6 +1235,10 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
return $this->gamemode === Player::SPECTATOR;
}
public function isFireProof() : bool{
return $this->isCreative();
}
public function getDrops(){
if(!$this->isCreative()){
return parent::getDrops();