mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
PhpStorm inspections
Fixed some minor bugs and dropped some obsolete code pocketmine\level\generator namespace is ignored in this commit
This commit is contained in:
@ -1610,6 +1610,7 @@ abstract class Entity extends Location implements Metadatable{
|
||||
* @param int $id
|
||||
* @param int $type
|
||||
* @param mixed $value
|
||||
* @param bool $send
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
|
@ -236,7 +236,8 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
}
|
||||
|
||||
public function recalculateXpProgress() : float{
|
||||
$this->setXpProgress($this->getRemainderXp() / self::getTotalXpForLevel($this->getXpLevel()));
|
||||
$this->setXpProgress($progress = $this->getRemainderXp() / self::getTotalXpForLevel($this->getXpLevel()));
|
||||
return $progress;
|
||||
}
|
||||
|
||||
public static function getTotalXpForLevel(int $level) : int{
|
||||
|
Reference in New Issue
Block a user