mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Human: change doFoodTick() visibility to protected
This commit is contained in:
parent
f2511983cf
commit
807af2e6fb
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user