mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Merge branch 'stable' into minor-next
This commit is contained in:
@ -1199,10 +1199,6 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
return !$this->gamemode->equals(GameMode::CREATIVE());
|
||||
}
|
||||
|
||||
public function isFireProof() : bool{
|
||||
return $this->isCreative();
|
||||
}
|
||||
|
||||
public function getDrops() : array{
|
||||
if($this->hasFiniteResources()){
|
||||
return parent::getDrops();
|
||||
@ -1440,6 +1436,10 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
$this->entityBaseTick($tickDiff);
|
||||
Timings::$entityBaseTick->stopTiming();
|
||||
|
||||
if($this->isCreative() && $this->fireTicks > 1){
|
||||
$this->fireTicks = 1;
|
||||
}
|
||||
|
||||
if(!$this->isSpectator() && $this->isAlive()){
|
||||
Timings::$playerCheckNearEntities->startTiming();
|
||||
$this->checkNearEntities();
|
||||
|
Reference in New Issue
Block a user