Fix wrong captured lightningBolt entity.
This commit is contained in:
parent
2a9619205f
commit
9bc66e5552
@ -29,7 +29,7 @@ public class CraftEventFactoryMixin {
|
||||
BlockPos damageEventBlock = ArclightCaptures.getDamageEventBlock();
|
||||
if (damageEventEntity != null && entityDamage == null) {
|
||||
if (source.damageType.equals(DamageSource.LIGHTNING_BOLT.damageType)) {
|
||||
entityDamage = entity;
|
||||
entityDamage = damageEventEntity;
|
||||
}
|
||||
}
|
||||
if (damageEventBlock != null && blockDamage == null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user