diff --git a/src/main/java/io/redspace/ironsspellbooks/player/CommonPlayerEvents.java b/src/main/java/io/redspace/ironsspellbooks/player/CommonPlayerEvents.java index 4b9a7d734..8c74e13d9 100644 --- a/src/main/java/io/redspace/ironsspellbooks/player/CommonPlayerEvents.java +++ b/src/main/java/io/redspace/ironsspellbooks/player/CommonPlayerEvents.java @@ -1,5 +1,6 @@ package io.redspace.ironsspellbooks.player; +import io.redspace.ironsspellbooks.IronsSpellbooks; import io.redspace.ironsspellbooks.capabilities.spell.SpellData; import io.redspace.ironsspellbooks.spells.SpellType; import io.redspace.ironsspellbooks.util.Utils; @@ -35,12 +36,4 @@ public static void onUseItemStop(LivingEntityUseItemEvent.Stop event) { } } } - - public static void onUseItemFinish(LivingEntityUseItemEvent.Finish event) { - if (Utils.canImbue(event.getItem())) { - //IronsSpellbooks.LOGGER.debug("CommonPlayerEvents.onUseItemFinish set cancelled"); - event.setCanceled(true); - } - //IronsSpellbooks.LOGGER.debug("CommonPlayerEvents.onUseItemFinish {} {}", event.getEntity().getLevel().isClientSide, event.getItem().getItem()); - } } diff --git a/src/main/java/io/redspace/ironsspellbooks/setup/ModSetup.java b/src/main/java/io/redspace/ironsspellbooks/setup/ModSetup.java index 67b04822e..ca1118420 100644 --- a/src/main/java/io/redspace/ironsspellbooks/setup/ModSetup.java +++ b/src/main/java/io/redspace/ironsspellbooks/setup/ModSetup.java @@ -39,7 +39,6 @@ public static void setup() { bus.addListener(MagicEvents::onWorldTick); bus.addListener(CommonPlayerEvents::onPlayerRightClickItem); bus.addListener(CommonPlayerEvents::onUseItemStop); - bus.addListener(CommonPlayerEvents::onUseItemFinish); //SPELLBOOKS //bus.addGenericListener(ItemStack.class, SpellBookDataEvents::onAttachCapabilities);