From 99ae9da66167768b85a45602ba7159e72a2d0189 Mon Sep 17 00:00:00 2001 From: Sakura Ryoko Date: Sat, 22 Jun 2024 15:27:04 -0400 Subject: [PATCH] Rename tweak name from PR to make more logical sense --- src/main/java/fi/dy/masa/tweakeroo/config/FeatureToggle.java | 2 +- .../tweakeroo/mixin/MixinClientPlayerInteractionManager.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() ||