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