mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-24 05:54:41 +00:00
Fix ShieldBlockEvent not correctly performing damaged functions when not all damage is blocked. (#9615)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user