mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-02 16:23:04 +00:00
Human: change doFoodTick() visibility to protected
This commit is contained in:
@ -1744,7 +1744,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function doFoodTick(int $tickDiff = 1) : void{
|
protected function doFoodTick(int $tickDiff = 1) : void{
|
||||||
if($this->isSurvival()){
|
if($this->isSurvival()){
|
||||||
parent::doFoodTick($tickDiff);
|
parent::doFoodTick($tickDiff);
|
||||||
}
|
}
|
||||||
|
@ -629,7 +629,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
|||||||
return $hasUpdate;
|
return $hasUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function doFoodTick(int $tickDiff = 1) : void{
|
protected function doFoodTick(int $tickDiff = 1) : void{
|
||||||
if($this->isAlive()){
|
if($this->isAlive()){
|
||||||
$food = $this->getFood();
|
$food = $this->getFood();
|
||||||
$health = $this->getHealth();
|
$health = $this->getHealth();
|
||||||
|
Reference in New Issue
Block a user