summaryrefslogtreecommitdiff
path: root/src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2022-04-22 15:18:09 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2022-04-22 15:18:09 -0230
commita3f64c9a041d483e24fe06043aed2b7aeeed454c (patch)
treed9f8b7d67a734270aa22395359af41a8be96c1ec /src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt
parent502915cd06103a59c1a64d4c9c97cb1eef400068 (diff)
downloadRewardClaim-1.0.5.tar.gz
RewardClaim-1.0.5.tar.bz2
RewardClaim-1.0.5.zip
Update to fix Hypixel changev1.0.5
Diffstat (limited to 'src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt')
-rw-r--r--src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt4
1 files changed, 1 insertions, 3 deletions
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
}
}
}