From 0c5b771e0ae2d23894aae50f46e36827ae319ef6 Mon Sep 17 00:00:00 2001 From: Hendrix-Shen Date: Thu, 9 Feb 2023 22:27:14 +0800 Subject: [PATCH] Fix remap --- .../MixinClientPlayerInteractionManager.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/plusls/ommc/mixin/feature/forceBreakingCooldown/MixinClientPlayerInteractionManager.java b/src/main/java/com/plusls/ommc/mixin/feature/forceBreakingCooldown/MixinClientPlayerInteractionManager.java index bafa9dc..9e79dc9 100644 --- a/src/main/java/com/plusls/ommc/mixin/feature/forceBreakingCooldown/MixinClientPlayerInteractionManager.java +++ b/src/main/java/com/plusls/ommc/mixin/feature/forceBreakingCooldown/MixinClientPlayerInteractionManager.java @@ -22,10 +22,16 @@ public class MixinClientPlayerInteractionManager { private int destroyDelay; //#if MC > 11802 - @Inject(method = "method_41930", - at = @At(value = "INVOKE", + @Inject( + method = "method_41930", + at = @At( + value = "INVOKE", target = "Lnet/minecraft/client/multiplayer/MultiPlayerGameMode;destroyBlock(Lnet/minecraft/core/BlockPos;)Z", - ordinal = 0)) + remap = true, + ordinal = 0 + ), + remap = false + ) private void addBreakingCooldown(BlockState blockState, BlockPos blockPos, Direction direction, int i, CallbackInfoReturnable> cir) { if (Configs.forceBreakingCooldown) { destroyDelay = 5;