diff --git a/src/main/java/fi/dy/masa/tweakeroo/config/FeatureToggle.java b/src/main/java/fi/dy/masa/tweakeroo/config/FeatureToggle.java index d980c1d91..51981c2ea 100644 --- a/src/main/java/fi/dy/masa/tweakeroo/config/FeatureToggle.java +++ b/src/main/java/fi/dy/masa/tweakeroo/config/FeatureToggle.java @@ -66,7 +66,7 @@ public enum FeatureToggle implements IHotkeyTogglable, IConfigNotifiable periodicAttackInterval"), TWEAK_PERIODIC_USE ("tweakPeriodicUse", false, "", "Enables periodic uses (right clicks)\nConfigure the interval in Generic -> periodicUseInterval"), TWEAK_PERIODIC_HOLD_ATTACK ("tweakPeriodicHoldAttack", false, "", "Enables periodically holding attack for a configurable amount of time.\nConfigure the interval in Generic -> periodicHoldAttackInterval\nand the duration in periodicHoldAttackDuration\n§6Note: You should not use the normal hold attack\n§6or the periodic attack at the same time"), diff --git a/src/main/java/fi/dy/masa/tweakeroo/mixin/MixinClientPlayerInteractionManager.java b/src/main/java/fi/dy/masa/tweakeroo/mixin/MixinClientPlayerInteractionManager.java index adc43218b..ccd49db7b 100644 --- a/src/main/java/fi/dy/masa/tweakeroo/mixin/MixinClientPlayerInteractionManager.java +++ b/src/main/java/fi/dy/masa/tweakeroo/mixin/MixinClientPlayerInteractionManager.java @@ -150,9 +150,9 @@ private void handleBreakingRestriction1(BlockPos pos, Direction side, CallbackIn @Inject(method = "updateBlockBreakingProgress", at = @At("HEAD"), cancellable = true) // MCP: onPlayerDamageBlock private void handleBreakingRestriction2(BlockPos pos, Direction side, CallbackInfoReturnable cir) { - if (FeatureToggle.TWEAK_NO_BREAK_BLOCK_CD.getBooleanValue()) + if (FeatureToggle.TWEAK_NO_BLOCK_BREAK_CD.getBooleanValue()) { - blockBreakingCooldown = 0; + this.blockBreakingCooldown = 0; } if (CameraUtils.shouldPreventPlayerInputs() ||