Skip to content

Commit

Permalink
[1.21.3] Remove hardcoded ShieldItem check in LivingEntity (#1676)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasglasser authored Nov 10, 2024
1 parent 424b600 commit 20ce6df
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions patches/net/minecraft/world/entity/LivingEntity.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,15 @@
itemstack = itemstack1.copy();
itemstack1.shrink(1);
break;
@@ -1309,7 +_,7 @@
}

ItemStack itemstack = this.getItemBlockingWith();
- if (!p_21276_.is(DamageTypeTags.BYPASSES_SHIELD) && itemstack != null && itemstack.getItem() instanceof ShieldItem && !flag) {
+ if (!p_21276_.is(DamageTypeTags.BYPASSES_SHIELD) && itemstack != null && !flag) {
Vec3 vec3 = p_21276_.getSourcePosition();
if (vec3 != null) {
Vec3 vec31 = this.calculateViewVector(0.0F, this.getYHeadRot());
@@ -1343,6 +_,7 @@
}

Expand Down

0 comments on commit 20ce6df

Please sign in to comment.