Human: change doFoodTick() visibility to protected

This commit is contained in:
Dylan K. Taylor 2018-05-19 16:30:41 +01:00
parent f2511983cf
commit 807af2e6fb
2 changed files with 2 additions and 2 deletions

View File

@ -1744,7 +1744,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
return true;
}
public function doFoodTick(int $tickDiff = 1) : void{
protected function doFoodTick(int $tickDiff = 1) : void{
if($this->isSurvival()){
parent::doFoodTick($tickDiff);
}

View File

@ -629,7 +629,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
return $hasUpdate;
}
public function doFoodTick(int $tickDiff = 1) : void{
protected function doFoodTick(int $tickDiff = 1) : void{
if($this->isAlive()){
$food = $this->getFood();
$health = $this->getHealth();