From 2900167ffa0d17e3255d8573ce17b45d68867846 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 19 May 2018 16:33:13 +0100 Subject: [PATCH] Human: removed redundant isSprinting() check from doFoodTick() this is checked in setSprinting() anyway. --- src/pocketmine/entity/Human.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pocketmine/entity/Human.php b/src/pocketmine/entity/Human.php index 1cd71bcaf..572a15642 100644 --- a/src/pocketmine/entity/Human.php +++ b/src/pocketmine/entity/Human.php @@ -663,9 +663,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{ } if($food <= 6){ - if($this->isSprinting()){ - $this->setSprinting(false); - } + $this->setSprinting(false); } } }