Skip to content

Commit

Permalink
Fix misaligned ShieldBlockEvent patch (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadows-of-Fire authored Jan 28, 2024
1 parent 5e03a6e commit 560199c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions patches/net/minecraft/world/entity/LivingEntity.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -167,21 +167,16 @@
if (!p_21016_.is(DamageTypeTags.IS_PROJECTILE)) {
Entity entity = p_21016_.getDirectEntity();
if (entity instanceof LivingEntity livingentity) {
@@ -1119,12 +_,13 @@
@@ -1119,7 +_,8 @@
}
}

- flag = true;
+ flag = p_21017_ <= 0;
+ }
}

if (p_21016_.is(DamageTypeTags.IS_FREEZING) && this.getType().is(EntityTypeTags.FREEZE_HURTS_EXTRA_TYPES)) {
p_21017_ *= 5.0F;
}
+ }

this.walkAnimation.setSpeed(1.5F);
boolean flag1 = true;
@@ -1158,9 +_,9 @@
if (entity1 instanceof Player player1) {
this.lastHurtByPlayerTime = 100;
Expand Down

0 comments on commit 560199c

Please sign in to comment.