aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/DankersSkyblockMod.java
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-05 20:53:07 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-05 20:53:07 -0500
commit91127a0be9b7e6cb2bdc30994a4092026e8bbcae (patch)
treeef213d5eb63da506c31fa5a6a00e5af70bfa23c2 /src/main/java/me/Danker/DankersSkyblockMod.java
parent98c964c6350b1cae9cee47d53e21026125893f05 (diff)
downloadSkyblockMod-91127a0be9b7e6cb2bdc30994a4092026e8bbcae.tar.gz
SkyblockMod-91127a0be9b7e6cb2bdc30994a4092026e8bbcae.tar.bz2
SkyblockMod-91127a0be9b7e6cb2bdc30994a4092026e8bbcae.zip
Block clicking the wrong sequence in chronomation
Diffstat (limited to 'src/main/java/me/Danker/DankersSkyblockMod.java')
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java
index 2aa6425..4a8722f 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -2882,9 +2882,14 @@ public class DankersSkyblockMod
if (ToggleCommand.chronomatronToggled && inventoryName.startsWith("Chronomatron (")) {
if (inventory.getStackInSlot(49).getDisplayName().startsWith("§7Timer: §a") && (item == null || item.getItem() == Item.getItemFromBlock(Blocks.stained_glass) || item.getItem() == Item.getItemFromBlock(Blocks.stained_hardened_clay))) {
+ if(!item.getDisplayName().equals(chronomatronPattern.get(chronomatronMouseClicks))) {
+ if(event.isCancelable()) event.setCanceled(true);
+ return;
+ }
chronomatronMouseClicks++;
} else if(inventory.getStackInSlot(49).getDisplayName().startsWith("§aRemember the pattern!")) {
if(event.isCancelable()) event.setCanceled(true);
+ return;
}
}