From 6aa975f84cb8d53717227fb0cb5e28b9d77ae0af Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Sun, 6 Dec 2020 11:45:51 -0500 Subject: forgot to add item check --- src/main/java/me/Danker/DankersSkyblockMod.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/main') 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); + } + } } } -- cgit