diff --git a/src/pocketmine/entity/Effect.php b/src/pocketmine/entity/Effect.php index ac142b146..6824e6ea5 100644 --- a/src/pocketmine/entity/Effect.php +++ b/src/pocketmine/entity/Effect.php @@ -314,12 +314,6 @@ class Effect{ } return true; case Effect::HUNGER: - if($this->amplifier < 0){ // prevents hacking with amplifier -1 - return false; - } - if(($interval = 20) > 0){ - return ($this->duration % $interval) === 0; - } return true; case Effect::INSTANT_DAMAGE: case Effect::INSTANT_HEALTH: @@ -360,7 +354,7 @@ class Effect{ case Effect::HUNGER: if($entity instanceof Human){ - $entity->exhaust(0.5 * $this->getEffectLevel(), PlayerExhaustEvent::CAUSE_POTION); + $entity->exhaust(0.025 * $this->getEffectLevel(), PlayerExhaustEvent::CAUSE_POTION); } break; case Effect::INSTANT_HEALTH: