Skip to content

Commit

Permalink
revert check for 'isCreative' for disableBlockBreakingCooldown
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Dec 7, 2024
1 parent 2deacec commit 9db095b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ 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<Boolean> cir)
{
if (Configs.Disable.DISABLE_BLOCK_BREAK_COOLDOWN.getBooleanValue() &&
this.client.player.isCreative() == false)
if (Configs.Disable.DISABLE_BLOCK_BREAK_COOLDOWN.getBooleanValue())
//&& this.client.player.isCreative() == false)
{
this.blockBreakingCooldown = 0;
}
Expand Down

0 comments on commit 9db095b

Please sign in to comment.