diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 787ba7054..225191f60 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -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); } diff --git a/src/pocketmine/entity/Human.php b/src/pocketmine/entity/Human.php index 44e965eea..e5b0185ed 100644 --- a/src/pocketmine/entity/Human.php +++ b/src/pocketmine/entity/Human.php @@ -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();