From 98c964c6350b1cae9cee47d53e21026125893f05 Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Sat, 5 Dec 2020 20:38:44 -0500 Subject: Block clicks during chronomatron remember the puzzle --- src/main/java/me/Danker/DankersSkyblockMod.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); } } -- cgit