Fix shield disable inconsistency
In vanilla, if the damage source is tagged as a projectile, it will not disable the shield if the attacker is holding an axe item.
This commit is contained in:
@@ -1216,7 +1216,7 @@
|
||||
+ this.hurtCurrentlyUsedShield((float) -event.getDamage(DamageModifier.BLOCKING));
|
||||
+ Entity entity = damagesource.getDirectEntity();
|
||||
+
|
||||
+ if (entity instanceof LivingEntity) {
|
||||
+ if (!damagesource.is(DamageTypeTags.IS_PROJECTILE) && entity instanceof LivingEntity) { // Paper - Fix shield disable inconsistency
|
||||
+ this.blockUsingShield((LivingEntity) entity);
|
||||
+ }
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user