diff options
author | ThatGravyBoat <thatgravyboat@gmail.com> | 2022-04-22 15:18:09 -0230 |
---|---|---|
committer | ThatGravyBoat <thatgravyboat@gmail.com> | 2022-04-22 15:18:09 -0230 |
commit | a3f64c9a041d483e24fe06043aed2b7aeeed454c (patch) | |
tree | d9f8b7d67a734270aa22395359af41a8be96c1ec /src/main/kotlin/tech/thatgravyboat/rewardclaim/RewardClaim.kt | |
parent | 502915cd06103a59c1a64d4c9c97cb1eef400068 (diff) | |
download | RewardClaim-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.kt | 4 |
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 } } } |