diff --git a/src/main/java/me/zeroeightsix/kami/mixin/client/MixinItemBow.java b/src/main/java/me/zeroeightsix/kami/mixin/client/MixinItemBow.java deleted file mode 100644 index 62e9a55e..00000000 --- a/src/main/java/me/zeroeightsix/kami/mixin/client/MixinItemBow.java +++ /dev/null @@ -1,23 +0,0 @@ -package me.zeroeightsix.kami.mixin.client; - -import me.zeroeightsix.kami.module.modules.player.TpsSync; -import me.zeroeightsix.kami.util.LagCompensator; -import net.minecraft.item.ItemBow; -import net.minecraft.item.ItemStack; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; - -/** - * @author 086 - */ -@Mixin(ItemBow.class) -public class MixinItemBow { - - @Inject(method = "getMaxItemUseDuration", cancellable = true, at = @At("HEAD")) - public void getMaxItemUseDuration(ItemStack stack, CallbackInfoReturnable returnable) { - if (TpsSync.isSync()) returnable.setReturnValue((int) (72000 * (20f/LagCompensator.INSTANCE.getTickRate()))); - } - -} diff --git a/src/main/resources/mixins.kami.json b/src/main/resources/mixins.kami.json index 85f54ba6..15177419 100644 --- a/src/main/resources/mixins.kami.json +++ b/src/main/resources/mixins.kami.json @@ -19,7 +19,6 @@ "MixinRenderPlayer", "MixinGuiPlayerTabOverlay", "MixinC00Handshake", - "MixinNetHandlerPlayClient", - "MixinItemBow" + "MixinNetHandlerPlayClient" ] }