mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Human: removed redundant isSprinting() check from doFoodTick()
this is checked in setSprinting() anyway.
This commit is contained in:
@ -663,12 +663,10 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
}
|
||||
|
||||
if($food <= 6){
|
||||
if($this->isSprinting()){
|
||||
$this->setSprinting(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return $this->getNameTag();
|
||||
|
Reference in New Issue
Block a user