Commits

Doc authored and md_5 committed c16b696e414
SPIGOT-7967, #887: Call explode events for EXPLODE effect (enchantments) and non block changes (mobGriefing false)
No tags

nms-patches/net/minecraft/world/item/enchantment/effects/ExplodeEffect.patch

Added
1 +--- a/net/minecraft/world/item/enchantment/effects/ExplodeEffect.java
2 ++++ b/net/minecraft/world/item/enchantment/effects/ExplodeEffect.java
3 +@@ -40,7 +40,7 @@
4 +
5 + @Nullable
6 + private DamageSource getDamageSource(Entity entity, Vec3D vec3d) {
7 +- return this.damageType.isEmpty() ? null : (this.attributeToUser ? new DamageSource((Holder) this.damageType.get(), entity) : new DamageSource((Holder) this.damageType.get(), vec3d));
8 ++ return this.damageType.isEmpty() ? (entity == null ? null : entity.level().damageSources().explosion(null).customCausingEntityDamager(entity)) : (this.attributeToUser ? new DamageSource((Holder) this.damageType.get(), entity) : new DamageSource((Holder) this.damageType.get(), vec3d)); // CraftBukkit - copy from explosion default damagesource to allow tracking entity behind the effect
9 + }
10 +
11 + @Override

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut