aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/TheMod.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-10-16 22:24:32 -0400
committerbowser0000 <bowser0000@gmail.com>2020-10-16 22:24:32 -0400
commit3413ab538e830977206ec1b6bd95e5f6c334ebf1 (patch)
tree6f496cb847bb555ea4b8bba2f2eed7f4f08f28f0 /src/main/java/me/Danker/TheMod.java
parentff7001b95634e610a56220c58bc9619c063203da (diff)
downloadSkyblockMod-3413ab538e830977206ec1b6bd95e5f6c334ebf1.tar.gz
SkyblockMod-3413ab538e830977206ec1b6bd95e5f6c334ebf1.tar.bz2
SkyblockMod-3413ab538e830977206ec1b6bd95e5f6c334ebf1.zip
Add ability to disable Livid Dagger
Diffstat (limited to 'src/main/java/me/Danker/TheMod.java')
-rw-r--r--src/main/java/me/Danker/TheMod.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/TheMod.java b/src/main/java/me/Danker/TheMod.java
index f7b7763..3bb11cf 100644
--- a/src/main/java/me/Danker/TheMod.java
+++ b/src/main/java/me/Danker/TheMod.java
@@ -1882,8 +1882,13 @@ public class TheMod
ItemStack item = event.entityPlayer.getHeldItem();
if (item == null) return;
- if (ToggleCommand.aotdToggled && item.getDisplayName().contains("Aspect of the Dragons") && event.action == PlayerInteractEvent.Action.RIGHT_CLICK_AIR) {
- event.setCanceled(true);
+ if (event.action == PlayerInteractEvent.Action.RIGHT_CLICK_AIR) {
+ if (ToggleCommand.aotdToggled && item.getDisplayName().contains("Aspect of the Dragons")) {
+ event.setCanceled(true);
+ }
+ if (ToggleCommand.lividDaggerToggled && item.getDisplayName().contains("Livid Dagger")) {
+ event.setCanceled(true);
+ }
}
}