Allow eating in creative & peaceful

closes #5923
closes #6056
This commit is contained in:
Dylan K. Taylor
2024-12-01 17:42:26 +00:00
parent 93a9007f3c
commit 12214792b3
5 changed files with 18 additions and 3 deletions

View File

@ -1471,6 +1471,10 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
return true;
}
public function canEat() : bool{
return $this->isCreative() || parent::canEat();
}
public function canBreathe() : bool{
return $this->isCreative() || parent::canBreathe();
}