diff options
author | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-06 11:45:51 -0500 |
---|---|---|
committer | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-06 11:45:51 -0500 |
commit | 6aa975f84cb8d53717227fb0cb5e28b9d77ae0af (patch) | |
tree | 5cfafe00719033ce4d4891fc6597b65ccaf9b9cd | |
parent | 020c146a9d75d6ef96213b5504b421f7e72dc2b1 (diff) | |
download | SkyblockMod-6aa975f84cb8d53717227fb0cb5e28b9d77ae0af.tar.gz SkyblockMod-6aa975f84cb8d53717227fb0cb5e28b9d77ae0af.tar.bz2 SkyblockMod-6aa975f84cb8d53717227fb0cb5e28b9d77ae0af.zip |
forgot to add item check
-rw-r--r-- | src/main/java/me/Danker/DankersSkyblockMod.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index 8b32d0d..0ef8ccc 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -2830,7 +2830,14 @@ public class DankersSkyblockMod interactables.add(Blocks.coal_block); interactables.add(Blocks.redstone_block); } - if(!interactables.contains(block)) if(event.isCancelable()) event.setCanceled(true); + if(!interactables.contains(block)) { + if (ToggleCommand.aotdToggled && item.getDisplayName().contains("Aspect of the Dragons")) { + event.setCanceled(true); + } + if (ToggleCommand.lividDaggerToggled && item.getDisplayName().contains("Livid Dagger")) { + event.setCanceled(true); + } + } } } |