mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Move a giant heap of network garbage out of Entity
This commit is contained in:
@@ -24,9 +24,11 @@ declare(strict_types=1);
|
||||
namespace pocketmine\entity;
|
||||
|
||||
|
||||
use pocketmine\network\mcpe\protocol\types\EntityMetadataFlags;
|
||||
|
||||
abstract class Animal extends Creature implements Ageable{
|
||||
|
||||
public function isBaby() : bool{
|
||||
return $this->getGenericFlag(self::DATA_FLAG_BABY);
|
||||
return $this->getGenericFlag(EntityMetadataFlags::BABY);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user