aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-05 20:57:42 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-05 20:57:42 -0500
commite2e3ce5f8b69323eecea630fb56ae34a3e82aa07 (patch)
tree061dafac5c5e140f88d3113fa83c788f21ca30c6 /src/main/java/me/Danker
parent91127a0be9b7e6cb2bdc30994a4092026e8bbcae (diff)
downloadSkyblockMod-e2e3ce5f8b69323eecea630fb56ae34a3e82aa07.tar.gz
SkyblockMod-e2e3ce5f8b69323eecea630fb56ae34a3e82aa07.tar.bz2
SkyblockMod-e2e3ce5f8b69323eecea630fb56ae34a3e82aa07.zip
Add manual override
override blocking clicks on chronomatron if shift is held down.
Diffstat (limited to 'src/main/java/me/Danker')
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java
index 4a8722f..f609bc8 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -1,7 +1,6 @@
package me.Danker;
import com.google.gson.JsonObject;
-import com.mojang.realmsclient.util.RealmsUtil;
import me.Danker.commands.*;
import me.Danker.gui.*;
import me.Danker.handlers.*;
@@ -14,7 +13,6 @@ import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.GuiChat;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.gui.inventory.GuiChest;
-import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItemFrame;
@@ -2883,7 +2881,7 @@ 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);
+ if(event.isCancelable() && !Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) && !Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) event.setCanceled(true);
return;
}
chronomatronMouseClicks++;