From f6b9e46a6a94e6be6f09c5e0d82cfa11fd65f0e7 Mon Sep 17 00:00:00 2001 From: Ridan Vandenbergh Date: Tue, 14 Aug 2018 17:29:34 +0200 Subject: [PATCH] yeah that just didn't work --- .../kami/mixin/client/MixinItemBow.java | 23 ------------------- src/main/resources/mixins.kami.json | 3 +-- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 src/main/java/me/zeroeightsix/kami/mixin/client/MixinItemBow.java 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" ] }