Fix ShieldBlockEvent not correctly performing damaged functions when not all damage is blocked. (#9615)

This commit is contained in:
dhyces authored and GitHub committed 2023-07-03 16:56:22 -07:00
1 parent 47a2e137ed
commit b34275988c
1 file changed
+8 -1
@@ -177,7 +177,14 @@
if (!p_21016_.m_269533_(DamageTypeTags.f_268524_)) {
Entity entity = p_21016_.m_7640_();
if (entity instanceof LivingEntity) {
@@ -1071,6 +_,7 @@
@@ -1065,12 +_,13 @@
}
}
- flag = true;
+ flag = p_21017_ <= 0;
}
if (p_21016_.m_269533_(DamageTypeTags.f_268419_) && this.m_6095_().m_204039_(EntityTypeTags.f_144295_)) {
p_21017_ *= 5.0F;
}