Skip to content

Commit

Permalink
Fix remap
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrix-Shen committed Feb 9, 2023
1 parent c87592d commit 0c5b771
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Packet<ServerGamePacketListener>> cir) {
if (Configs.forceBreakingCooldown) {
destroyDelay = 5;
Expand Down

0 comments on commit 0c5b771

Please sign in to comment.