mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
HungerManager: use AttributeMap->mustGet()
fixes 2 errors on phpstan level 8
This commit is contained in:
@@ -57,7 +57,7 @@ class HungerManager{
|
||||
}
|
||||
|
||||
private static function fetchAttribute(Entity $entity, string $attributeId) : Attribute{
|
||||
$attribute = AttributeFactory::getInstance()->get($attributeId);
|
||||
$attribute = AttributeFactory::getInstance()->mustGet($attributeId);
|
||||
$entity->getAttributeMap()->add($attribute);
|
||||
return $attribute;
|
||||
}
|
||||
|
Reference in New Issue
Block a user