Skip to content

Commit

Permalink
Fixed being able to block with a charged crossbow in hand
Browse files Browse the repository at this point in the history
  • Loading branch information
Insane96 committed Mar 8, 2025
1 parent c8b9077 commit 55932c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Upcoming
* Definitely removed Shield Bash enchantment
* Fixed italian translation being outdated
* Fixed being able to block with a charged crossbow in hand

## 1.11.8
* Slightly increased shields cooldown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public LivingEntityMixin(EntityType<?> p_19870_, Level p_19871_) {

@Inject(method = "isBlocking", at = @At("HEAD"), cancellable = true)
public void shieldsPlus$isBlocking(CallbackInfoReturnable<Boolean> cir) {
if (!BaseFeature.canBlockWithCrouch((LivingEntity) (Object) this))
/*if (!BaseFeature.canBlockWithCrouch((LivingEntity) (Object) this))
return;
cir.setReturnValue(true);
cir.setReturnValue(true);*/
}

@Inject(method = "releaseUsingItem", at = @At("HEAD"), cancellable = true)
Expand Down

0 comments on commit 55932c3

Please sign in to comment.