From 8ec36dfa2f4a49115d776fc0ebf0312d249cbfd9 Mon Sep 17 00:00:00 2001 From: chsami Date: Wed, 9 Oct 2024 21:20:09 +0200 Subject: [PATCH] fix eatAt method --- .../runelite/client/plugins/microbot/util/player/Rs2Player.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/player/Rs2Player.java b/runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/player/Rs2Player.java index b11bd2c73a..c6537d27f0 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/player/Rs2Player.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/player/Rs2Player.java @@ -455,7 +455,7 @@ public static boolean hopIfPlayerDetected(int amountOfPlayers, int time, int dis public static boolean eatAt(int percentage) { double treshHold = (double) (Microbot.getClient().getBoostedSkillLevel(Skill.HITPOINTS) * 100) / Microbot.getClient().getRealSkillLevel(Skill.HITPOINTS); if (treshHold <= percentage) { - useFood(); + return useFood(); } return false; }