Human: removed redundant isSprinting() check from doFoodTick()

this is checked in setSprinting() anyway.
This commit is contained in:
Dylan K. Taylor 2018-05-19 16:33:13 +01:00
parent 11cc9f19ad
commit 2900167ffa

View File

@ -663,9 +663,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
}
if($food <= 6){
if($this->isSprinting()){
$this->setSprinting(false);
}
$this->setSprinting(false);
}
}
}