From a3f64c9a041d483e24fe06043aed2b7aeeed454c Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Fri, 22 Apr 2022 15:18:09 -0230 Subject: Update to fix Hypixel change --- src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt') diff --git a/src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt b/src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt index 3e15ec2..ba9b6d8 100644 --- a/src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt +++ b/src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt @@ -73,11 +73,9 @@ object RewardClaim { println("-------------------------------------------------------------------------------") } if (EssentialAPI.getGuiUtil().openedScreen() is RewardClaimGui && - event.gui is GuiScreenBook && - System.currentTimeMillis() - rewardClaimTime <= 3000 + (event.gui is GuiScreenBook || event.gui == null) && System.currentTimeMillis() - rewardClaimTime <= Config.checkingTimer ) { event.isCanceled = true - rewardClaimTime = 0 } } } -- cgit