From 14fb490376b71fd0e1ea01661c6e388b122b5493 Mon Sep 17 00:00:00 2001 From: asofold Date: Sun, 7 Oct 2012 22:03:34 +0200 Subject: [PATCH] Instanteat will now take maximum of last invclick and last eat. --- src/fr/neatmonster/nocheatplus/checks/inventory/InstantEat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/neatmonster/nocheatplus/checks/inventory/InstantEat.java b/src/fr/neatmonster/nocheatplus/checks/inventory/InstantEat.java index 58d8b835..3d034a7e 100644 --- a/src/fr/neatmonster/nocheatplus/checks/inventory/InstantEat.java +++ b/src/fr/neatmonster/nocheatplus/checks/inventory/InstantEat.java @@ -52,7 +52,7 @@ public class InstantEat extends Check { return false; // Rough estimation about how long it should take to eat - final long expectedTimeWhenEatingFinished = data.instantEatLastTime + 700L; + final long expectedTimeWhenEatingFinished = Math.max(data.instantEatLastTime, data.fastClickLastTime) + 700L; if (expectedTimeWhenEatingFinished < time) // Acceptable, reduce VL to reward the player.