Skip to content

Commit 0c5b771

Browse files
committed
Fix remap
1 parent c87592d commit 0c5b771

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/main/java/com/plusls/ommc/mixin/feature/forceBreakingCooldown/MixinClientPlayerInteractionManager.java

+9-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ public class MixinClientPlayerInteractionManager {
2222
private int destroyDelay;
2323

2424
//#if MC > 11802
25-
@Inject(method = "method_41930",
26-
at = @At(value = "INVOKE",
25+
@Inject(
26+
method = "method_41930",
27+
at = @At(
28+
value = "INVOKE",
2729
target = "Lnet/minecraft/client/multiplayer/MultiPlayerGameMode;destroyBlock(Lnet/minecraft/core/BlockPos;)Z",
28-
ordinal = 0))
30+
remap = true,
31+
ordinal = 0
32+
),
33+
remap = false
34+
)
2935
private void addBreakingCooldown(BlockState blockState, BlockPos blockPos, Direction direction, int i, CallbackInfoReturnable<Packet<ServerGamePacketListener>> cir) {
3036
if (Configs.forceBreakingCooldown) {
3137
destroyDelay = 5;

0 commit comments

Comments
 (0)