aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-05 20:38:44 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-05 20:38:44 -0500
commit98c964c6350b1cae9cee47d53e21026125893f05 (patch)
tree42605c7baa7170613c3b58d24ec688920a0c873f
parent72d6ae0777d19582136f6e5865fb830f6d712490 (diff)
downloadSkyblockMod-98c964c6350b1cae9cee47d53e21026125893f05.tar.gz
SkyblockMod-98c964c6350b1cae9cee47d53e21026125893f05.tar.bz2
SkyblockMod-98c964c6350b1cae9cee47d53e21026125893f05.zip
Block clicks during chronomatron remember the puzzle
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java
index 95f2099..2aa6425 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -2883,6 +2883,8 @@ 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))) {
chronomatronMouseClicks++;
+ } else if(inventory.getStackInSlot(49).getDisplayName().startsWith("§aRemember the pattern!")) {
+ if(event.isCancelable()) event.setCanceled(true);
}
}