mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Added some wrapper methods to make data flags less of a pain in the ass to work with
This commit is contained in:
@ -84,6 +84,6 @@ class Villager extends Creature implements NPC, Ageable{
|
||||
}
|
||||
|
||||
public function isBaby() : bool{
|
||||
return $this->getDataFlag(self::DATA_FLAGS, self::DATA_FLAG_BABY);
|
||||
return $this->getGenericFlag(self::DATA_FLAG_BABY);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user